org.apache.http.conn.HttpHostConnectException: Connection to refused

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

Probably the server has crashed or it isn't running, or your client is trying to connect to it using the wrong port.

Solutions on the web

via couchbase.com by Unknown author, 1 year ago
via GitHub by miltgrin
, 1 year ago
Connection to http://192.168.1.89:4984 refused
via Stack Overflow by timestron
, 1 year ago
Connection to http://192.168.1.135:9000 refused
via Stack Overflow by ranjith
, 2 years ago
Connection to http://192.168.1.1:8080 refused
via Stack Overflow by Hassy
, 2 years ago
Connection to <a href="http://127.0.0.1" rel="nofollow">http://127.0.0.1</a> refused
via xda-developers.com by Unknown author, 2 years ago
java.net.ConnectException: failed to connect to /127.0.0.1 (port 4984) after 60000ms: isConnected failed: ECONNREFUSED (Connection refused)
at libcore.io.IoBridge.isConnected(IoBridge.java:234)
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:452)
at java.net.Socket.connect(Socket.java:884)

Users with the same issue

3 times, 3 months ago
Once, 6 months ago
2 times, 6 months ago
17 times, 1 year ago
4 times, 1 year ago

Write tip

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