I am running into some issues with the Java socket API. I am trying to display the number of players currently connected to my game. It is easy to determine when a player h
I faced similar problem. In my case client must send data periodically. I hope you have same requirement. Then I set SO_TIMEOUT socket.setSoTimeout(1000 * 60 * 5); which is throw java.net.SocketTimeoutException when specified time is expired. Then I can detect dead client easily.