java.net.NoRouteToHostException in Linux socket connection
843790Dec 5 2006 — edited Dec 21 2006Hi there!
I have a Java client socket application now running in Linux (Fedora Core 6 with Sun JRE 1.4.2). This client socket establishes a persistent TCP connection (some sort of, at least) to a server. It sends messages and listens for responses.
It happens that, when I have more than one instance running (with each socket bound to a different port), I get "java.net.NoRouteToHostException: Cannot assign requested address". I just migrated to Linux, so I'm a bit unaware of why this is happening (I didn't get this on Windows). I was using ports 9999 and 6111.
This error also happened when my (single) client tried to reconnect one time the "persistent" connection crashed. Could it mean that the system is somehow overloaded with TCP connections or something similiar?
Can anyone give me a hint on this?
Thanks a lot!