java.net.NoRouteToHostException: Cannot assign requested address

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

via GitHub by vetss
, 1 year ago
Cannot assign requested address
via blazegraph.com by Unknown author, 10 months ago
Cannot assign requested address
via GitHub by joakime
, 1 year ago
Cannot assign requested address
via wpthm.com by Unknown author, 2 years ago
java.net.NoRouteToHostException: Cannot assign requested address
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)

Users with the same issue

3 times, 1 month ago
8 times, 1 month ago
6 times, 2 months ago
21 times, 4 months ago
6 times, 11 months ago
19 more bugmates

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