org.apache.http.conn.HttpHostConnectException: Connection to <a href="http://127.0.0.1" rel="nofollow">http://127.0.0.1</a> 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

,
via Stack Overflow by danieltorres

Use '127.0.0.1' instead of 'localhost'.

Solutions on the web

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 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 Dexter
, 2 years ago
Connection to <a href="http://api.twitter.com" rel="nofollow">http://api.twitter.com</a> refused
via xda-developers.com by Unknown author, 2 years ago
via techforumnetwork.com by Unknown author, 1 year ago
Connection to http://devdashboard.company refused
org.apache.http.conn.HttpHostConnectException: Connection to <a href="http://127.0.0.1" rel="nofollow">http://127.0.0.1</a> refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:183)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:653)

Users with the same issue

Once, 2 months ago
Once, 3 months ago
2 times, 5 months ago
6 times, 1 year ago
Once, 1 year ago

Write tip

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