I would check if the server socket on the server is open. In the client, when I create a socket Socket sock = new Socket(host,port), I check if it opens:
if(sock == null)
System.out.println("The server is not connected!");
else
but I get no result. is there a way to check if the server socket is open on the other side? I tried even the method isConnected(), but nothing
Mazzy source
share