org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.2:8000 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 Stack Overflow by Yohannes Taye
, 1 year agovia Stack Overflow by ranjith
, 2 years agovia Stack Overflow by timestron
, 1 year agovia Stack Overflow by Hassy
, 2 years agovia xda-developers.com by Unknown author, 2 years ago
via Stack Overflow by Dexter
, 2 years agojava.net.ConnectException: failed to connect to /127.0.0.2 (port 8000) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)
at libcore.io.IoBridge.isConnected(IoBridge.java:238)
at libcore.io.IoBridge.connectErrno(IoBridge.java:171)
at libcore.io.IoBridge.connect(IoBridge.java:122)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)