java.net.SocketException: sendto failed: ENETUNREACH (Network is unreachable)

GitHub | YaleZheng | 1 year 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

    GitHub comment 162#165325253

    GitHub | 1 year ago | YaleZheng
    java.net.SocketException: sendto failed: ENETUNREACH (Network is unreachable)
  2. 0

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

    GitHub | 3 years ago | geeksville
    java.net.SocketException: sendto failed: ENETUNREACH (Network is unreachable)
  3. 0

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

    GitHub | 2 years ago | geeksville
    java.net.SocketException: sendto failed: ENETUNREACH (Network is unreachable)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Winamp Android features/bugs discussion thread - Page 7 - Winamp & SHOUTcast Forums

    shoutcast.com | 1 year ago
    java.net.SocketException: sendto failed: ENETUNREACH (Network is unreachable)
  6. 0

    Broadcasting over Wi-Fi Direct

    Stack Overflow | 4 years ago | user2190832
    java.net.SocketException: sendto failed: ENETUNREACH (Network is unreachable)
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

    sendto failed: ENETUNREACH (Network is unreachable)

    at libcore.io.Posix.sendtoBytes()
  2. Android
    IoBridge.sendto
    1. libcore.io.Posix.sendtoBytes(Native Method)
    2. libcore.io.Posix.sendto(Posix.java:156)
    3. libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
    4. libcore.io.IoBridge.sendto(IoBridge.java:466)
    4 frames
  3. Java RT
    DatagramSocket.send
    1. java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:182)
    2. java.net.DatagramSocket.send(DatagramSocket.java:281)
    2 frames
  4. com.qiniu.android
    ClientConnectionOperator.openConnection
    1. com.qiniu.android.dns.local.Resolver.udpCommunicate(Resolver.java:50)
    2. com.qiniu.android.dns.local.Resolver.resolve(Resolver.java:34)
    3. com.qiniu.android.dns.DnsManager.queryInternal(DnsManager.java:132)
    4. com.qiniu.android.dns.DnsManager.query(DnsManager.java:82)
    5. com.qiniu.android.http.ClientConnectionOperator.systemResolv(ClientConnectionOperator.java:243)
    6. com.qiniu.android.http.ClientConnectionOperator.openConnection(ClientConnectionOperator.java:141)
    6 frames
  5. cz.msebera.android
    CloseableHttpClient.execute
    1. cz.msebera.android.httpclient.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:145)
    2. cz.msebera.android.httpclient.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)
    3. cz.msebera.android.httpclient.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
    4. cz.msebera.android.httpclient.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
    5. cz.msebera.android.httpclient.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:860)
    6. cz.msebera.android.httpclient.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    6 frames
  6. android-async-http Library
    AsyncHttpRequest.run
    1. com.loopj.android.http.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:146)
    2. com.loopj.android.http.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:177)
    3. com.loopj.android.http.AsyncHttpRequest.run(AsyncHttpRequest.java:106)
    3 frames
  7. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    5. java.lang.Thread.run(Thread.java:841)
    5 frames