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

  1. ,
    via Stack Overflow by Tassos Bassoukos

    ECONNREFUSED means that the connection was attempted and the remote host answered back that nobody's listening on that port. Check if the Java server listens on all interfaces. Or check your bind address on the server.

  2. ,
    via Stack Overflow by Utsav

    ECONNREFUSED means that the connection was attempted and the remote host port is not listening. Hence this can be caused by:

    Is it a valid IP? check using ifconfig or ipconfig. You can try pinging the server.

    ping <host-ip>

Solutions on the web

via Stack Overflow by ujjwal mainali
, 1 year ago
connect failed: EHOSTUNREACH (No route to host)
via GitHub by jstevej
, 1 year ago
connect failed: ECONNREFUSED (Connection refused)
via GitHub by geovanisouza92
, 2 years ago
connect failed: ETIMEDOUT (Connection timed out)
via Stack Overflow by Bhavya Arora
, 2 weeks ago
via GitHub by rahil1991
, 1 year ago
connect failed: ETIMEDOUT (Connection timed out)
via Stack Overflow by Radu
, 4 months ago
connect failed: EHOSTUNREACH (No route to host)
android.system.ErrnoException: connect failed: EHOSTUNREACH (No route to host)	at libcore.io.Posix.connect(Native Method)	at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:111)	at libcore.io.IoBridge.connectErrno(IoBridge.java:137)	at libcore.io.IoBridge.connect(IoBridge.java:122)