org.apache.http.conn.HttpHostConnectException: Connection to http://10.0.2.2:8080 refused

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

    android app using a mapping service published on MY OWN PC as an ArcGIS Server IssueS

    Geographic Information Systems | 3 years ago | user35496
    org.apache.http.conn.HttpHostConnectException: Connection to http://10.0.2.2:8080 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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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
  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:144)
    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:460)
    3. java.net.Socket.connect(Socket.java:832)
    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:555)
    7. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:653)
    8. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:627)
    9. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:616)
    9 frames
  5. com.esri.core
    s.a
    1. com.esri.core.internal.io.handler.h.a(Unknown Source)
    2. com.esri.core.internal.io.handler.h.a(Unknown Source)
    3. com.esri.core.internal.tasks.ags.s.a(Unknown Source)
    3 frames
  6. com.esri.android
    ArcGISDynamicMapServiceLayer$1.run
    1. com.esri.android.map.ags.ArcGISDynamicMapServiceLayer.initLayer(Unknown Source)
    2. com.esri.android.map.ags.ArcGISDynamicMapServiceLayer$1.run(Unknown Source)
    2 frames
  7. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
    2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:137)
    4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
    6. java.lang.Thread.run(Thread.java:856)
    6 frames