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 MrStuff88
, 1 year ago
failed to connect to /192.168.137.1 (port 12345) after 5000ms: isConnected failed: EHOSTUNREACH (No route to host) 10-11 14:50:10.499 22651-28709/myProject.checkwifilist W/System.err:
via Stack Overflow by Moudiz
, 2 years ago
failed to connect to justedhak.comlu.com/31.170.161.96 (port 80) after 10000ms: isConnected failed: EHOSTUNREACH (No route to host)
via Stack Overflow by learner
, 2 years ago
failed to connect to localhost/127.0.0.1 (port 8080) after 20000ms: isConnected failed: ECONNREFUSED (Connection refused)
via Google Groups by learner via StackOverflow, 7 months ago
failed to connect to localhost/127.0.0.1 (port 8080) after 20000ms: isConnected failed: ECONNREFUSED (Connection refused)
via Stack Overflow by user208030
, 2 years ago
failed to connect to localhost/127.0.0.1 (port 8080) after 20000ms: isConnected failed: ECONNREFUSED (Connection refused)
android.system.ErrnoException: isConnected failed: EHOSTUNREACH (No route to host) 10-11 14:50:10.509 22651-28709/myProject.checkwifilist W/System.err:	at libcore.io.IoBridge.isConnected(IoBridge.java:223)	at libcore.io.IoBridge.connectErrno(IoBridge.java:171)	at libcore.io.IoBridge.connect(IoBridge.java:122)	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456)	at java.net.Socket.connect(Socket.java:882)	at com422studio.vk.checkwifilist.Client.doInBackground(Client.java:49)	at myProject.checkwifilist.Client.doInBackground(Client.java:22)	at android.os.AsyncTask$2.call(AsyncTask.java:288)	at java.util.concurrent.FutureTask.run(FutureTask.java:237)	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)	at java.lang.Thread.run(Thread.java:818)