Send Data between client and server as a byte array

I am trying to send encrypted data between a client and server. Due to the RSA encryption its in Byte array form. This means I have had to change the way I send data. I curently cant get it working, …

Why doesn’t windows desktop broadcast UDP?

Alright, so my application is a peer to peer chat application, designed for LAN communication. Discovery is done by UDP broadcasting the ip & port at the UDP broadcast address (255.255.255.255). I’…

What does the method getNetInterfaceConfig(String name) of Sigar get when name is null?

What does the following codes mean? String name = sigar.getNetInterfaceConfig(null).getName(); NetInterfaceStat stat = sigar.getNetInterfaceStat(name); I know the function of getNetInterfaceConfig(…

Openshift pod not discoverable, timed out

I have three microservices I am deploying in openshift. Service A, B, C. A is a nodejs app, B is a java app and C again a java app. A nd B is exposed to outside world using routers. Both A and B uses …

TCP threaded server/client

I’m trying to make a threaded TCP server that accept multiple client. It’s only accepting one client. Any idea on how to make the server accepting multiple client? Here is what I tried so far: I …

Is binding to 0.0.0.0 in Java guaranteed to bind to all network interfaces?

I’ve found empirically that Endpoint endpoint1 = Endpoint.create(new Ping()); endpoint1.publish(“http://0.0.0.0:8080/ws/ping”); binds to all network interfaces on the current computer (instead of …

SocketChannel: Single or multi , which is better?

SocketChannel is thread safe, so only one channel is need for communication between client and server. the channel served for read/write operations simultaneously But, if we using multi channels (…

Java: no security manager: RMI class loader disabled

Hi I have RMI application and now I try to invoke some methods at server from my client. I have following code: public static void main(final String[] args) { try { //Setting the security …