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

GitHub | weidongjian | 8 months 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 217#244031295

    GitHub | 8 months ago | weidongjian
    java.net.SocketException: sendto failed: ENETUNREACH (Network is unreachable)
  2. 0

    stuff

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

    0.12 - Unable to connect using SSH

    GitHub | 1 year ago | Edholm
    java.net.SocketException: sendto failed: EPERM (Operation not permitted)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Wifi Direct Multicast Datagrams throw SocketExceptions

    Google Groups | 4 days ago | Micah Akin
    java.net.SocketException: sendto failed: ENETUNREACH (Network is unreachable)
  6. 0

    GitHub comment 1021#159205079

    GitHub | 1 year ago | neutrinog
    android.system.ErrnoException: 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. android.system.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:206)
    3. libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278)
    4. libcore.io.IoBridge.sendto(IoBridge.java:513)
    4 frames
  3. Java RT
    DatagramSocket.send
    1. java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:184)
    2. java.net.DatagramSocket.send(DatagramSocket.java:305)
    2 frames
  4. com.qiniu.android
    Client$1.lookup
    1. com.qiniu.android.dns.local.Resolver.udpCommunicate(Resolver.java:49)
    2. com.qiniu.android.dns.local.Resolver.resolve(Resolver.java:34)
    3. com.qiniu.android.dns.DnsManager.queryInternal(DnsManager.java:168)
    4. com.qiniu.android.dns.DnsManager.query(DnsManager.java:116)
    5. com.qiniu.android.dns.DnsManager.queryInetAdress(DnsManager.java:213)
    6. com.qiniu.android.http.Client$1.lookup(Client.java:64)
    6 frames
  5. okhttp3.internal.connection
    ConnectInterceptor.intercept
    1. okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:172)
    2. okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:138)
    3. okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:80)
    4. okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:178)
    5. okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:129)
    6. okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:98)
    7. okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    7 frames
  6. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    2 frames
  7. okhttp3.internal.cache
    CacheInterceptor.intercept
    1. okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109)
    1 frame
  8. okhttp3.internal.http
    RealInterceptorChain.proceed
    1. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    2. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    3. okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    4. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    5. okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124)
    6. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
    7. okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
    7 frames
  9. okhttp3
    RealCall$AsyncCall.execute
    1. okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170)
    2. okhttp3.RealCall.access$100(RealCall.java:33)
    3. okhttp3.RealCall$AsyncCall.execute(RealCall.java:120)
    3 frames
  10. okhttp3.internal
    NamedRunnable.run
    1. okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
    1 frame
  11. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    3. java.lang.Thread.run(Thread.java:818)
    3 frames