my dog learned polymorphism*
The moose likes Sockets and Internet Protocols and the fly likes java.net.SocketException: Network is unreachable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "java.net.SocketException: Network is unreachable" Watch "java.net.SocketException: Network is unreachable" New topic
Author

java.net.SocketException: Network is unreachable

kannan vinayagam Duraiswamy
Ranch Hand

Joined: Jan 12, 2009
Posts: 52
there is a java server process running in a solaris machine.
its jobis to send https request massage to the client which is running on another machine.
we are using a port for https communication
all works fine.but rarely the communication between these two process gets disconnected by throwing the following exception,
java.net.SocketException: Network is unreachable
The client is pingable form the server side.but the problem still exit.
if the java server process is restarted then the issuse gets resolved.
can any one tell any suggestion for this issuse


Kannan.DV
Joseph Macer
Ranch Hand

Joined: Apr 20, 2008
Posts: 63
"Network is unreachable" is usually different than a timeout error in that it cannot even find where you want it to go, for example this can be the difference between having no wifi and having your wifi card off. First do the usual fiddling with your firewall to make sure the desired port is open, and then look into any network issues you might have. Turn off firewalls and remove obstacles like routers & complications to get it working in the simplest scenario possible, since this is probably a networking problem not a coding problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.net.SocketException: Network is unreachable
 
Similar Threads
Http port
what is RMI / CORBA
Network Exception
Can we say it a distribuited application
org.omg.CORBA.COMM_FAILURE