java.net.NoRouteToHostException

Cannot assign requested address

Samebug tips1

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web30

  • via GitHub by vetss
    , 1 year ago
    Cannot assign requested address
  • via grokbase.com by Unknown author, 1 year ago
    Cannot assign requested address
  • via experts-exchange.com by Unknown author, 1 year ago
    Cannot assign requested address
  • Stack trace

    • java.net.NoRouteToHostException: Cannot assign requested address at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at com.temp.TcpSocketClient$4.run(TcpSocketClient.java:563) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 4 hours ago
    Unknown user
    Once, 4 hours ago
    Unknown user
    Once, 4 hours ago
    Unknown user
    Once, 4 hours ago
    61 more bugmates