java.net.NoRouteToHostException: No route to host: connect

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Signals that an error occurred while attempting to connect a socket to a remote address and port. Typically, the remote host cannot be reached because of an intervening firewall, or if an intermediate router is down.

Solutions on the web

java.net.NoRouteToHostException: No route to host: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:372)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
3 times, 1 month ago
8 times, 1 month ago
6 times, 2 months ago
21 times, 4 months ago
19 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.