Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.net.NoRouteToHostException in Linux socket connection

843790Dec 5 2006 — edited Dec 21 2006
Hi 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 18 2007
Added on Dec 5 2006
9 comments
7,649 views