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 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, 1 year ago
org.apache.http.conn.HttpHostConnectException: Connection to 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

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 month ago
49 more bugmates

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