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

Stack Overflow | Passion | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 4 years ago | Passion
    org.apache.http.conn.HttpHostConnectException: Connection to http://172.20.38.143 refused
  2. 0

    libcore.io.ErrnoException: connect failed: ENETUNREACH (Network is unreachable)

    GitHub | 4 years ago | picon-software
    fr.a.a.b: org.apache.http.conn.HttpHostConnectException: Connection to http://api.eve-central.com refused
  3. 0

    Error Report: Connection to http://192.168.1.12:8081 refused

    GitHub | 2 years ago | rastating
    org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.12:8081 refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Connecting Android tablet to Web Service

    Stack Overflow | 4 years ago | plasmy
    org.apache.http.conn.HttpHostConnectException: Connection to http://170.54.162.239:80 refused
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. libcore.io.ErrnoException

    connect failed: ENETUNREACH (Network is unreachable)

    at libcore.io.Posix.connect()
  2. Android
    IoBridge.connect
    1. libcore.io.Posix.connect(Native Method)
    2. libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85)
    3. libcore.io.IoBridge.connectErrno(IoBridge.java:127)
    4. libcore.io.IoBridge.connect(IoBridge.java:112)
    4 frames
  3. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
    3. java.net.Socket.connect(Socket.java:848)
    3 frames
  4. Apache HttpClient
    AbstractHttpClient.execute
    1. org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
    2. org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)
    3. org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
    4. org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
    5. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
    6. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:674)
    7. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:511)
    8. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:489)
    8 frames
  5. nineandroid.net.example
    RegisterActivity$1.onClick
    1. nineandroid.net.example.library.JSONParser.getJSONFromUrl(JSONParser.java:42)
    2. nineandroid.net.example.library.UserFunctions.registerUser(UserFunctions.java:59)
    3. nineandroid.net.example.RegisterActivity$1.onClick(RegisterActivity.java:52)
    3 frames
  6. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:3567)
    2. android.view.View$PerformClick.run(View.java:14224)
    3. android.os.Handler.handleCallback(Handler.java:605)
    4. android.os.Handler.dispatchMessage(Handler.java:92)
    5. android.os.Looper.loop(Looper.java:137)
    6. android.app.ActivityThread.main(ActivityThread.java:4517)
    6 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame