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 user1122549
, 1 year ago
failed to connect to SERVERIP (port 8080): connect failed: ENETUNREACH (Network is unreachable) Server code - public class ServerThread implements Runnable { public void run() { try { if (SERVERIP != null
android.system.ErrnoException: connect failed: ENETUNREACH (Network is unreachable)	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)