org.apache.http.conn.HttpHostConnectException

tip

The system selects automatically a group owner. The owner is always 192.168.49.1, and maybe it's trying to connect to itself. If you want to select an owner yourself, you can change the value of ownerIntent, more on this here: https://goo.gl/DGEh7K

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Connecting Android tablet to Web Service
    via Stack Overflow by plasmy
    ,
  • Crash when typing stop name
    via GitHub by argilo
    ,
  • Strange Stack Trace
    via GitHub by ChadHartman
    ,
    • org.apache.http.conn.HttpHostConnectException: Connection to http://172.20.38.143 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:674) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:511) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:489) at nineandroid.net.example.library.JSONParser.getJSONFromUrl(JSONParser.java:42) at nineandroid.net.example.library.UserFunctions.registerUser(UserFunctions.java:59) at nineandroid.net.example.RegisterActivity$1.onClick(RegisterActivity.java:52) at android.view.View.performClick(View.java:3567) at android.view.View$PerformClick.run(View.java:14224) at android.os.Handler.handleCallback(Handler.java:605) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4517) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760) at dalvik.system.NativeStart.main(Native Method) Caused by: java.net.ConnectException: failed to connect to /172.20.38.143 (port 80): connect failed: ENETUNREACH (Network is unreachable) at libcore.io.IoBridge.connect(IoBridge.java:114) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459) at java.net.Socket.connect(Socket.java:848) at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144) ... 20 more Caused by: libcore.io.ErrnoException: connect failed: ENETUNREACH (Network is unreachable) at libcore.io.Posix.connect(Native Method) at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85) at libcore.io.IoBridge.connectErrno(IoBridge.java:127) at libcore.io.IoBridge.connect(IoBridge.java:112) ... 25 more

    Users with the same issue

    Indri YunitaIndri Yunita
    2 times, last one,
    iridiciridic
    4 times, last one,
    ajinkya_wajinkya_w
    40 times, last one,
    jkjk
    12 times, last one,
    joni1408joni1408
    30 times, last one,
    24 more bugmates