java.net.SocketException

sendto failed: ENETUNREACH (Network is unreachable)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web38

  • via GitHub by weidongjian
    ,
  • via GitHub by door43app
    ,
  • via GitHub by postrcase
    ,
  • Stack trace

    • java.net.SocketException: sendto failed: ENETUNREACH (Network is unreachable) at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:546) at libcore.io.IoBridge.sendto(IoBridge.java:515) at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:184) at java.net.DatagramSocket.send(DatagramSocket.java:305) at com.qiniu.android.dns.local.Resolver.udpCommunicate(Resolver.java:49) at com.qiniu.android.dns.local.Resolver.resolve(Resolver.java:34) at com.qiniu.android.dns.local.HijackingDetectWrapper.resolve(HijackingDetectWrapper.java:22) at com.qiniu.android.dns.local.AndroidDnsServer$1.resolve(AndroidDnsServer.java:119) at com.qiniu.android.dns.DnsManager.queryInternal(DnsManager.java:168) at com.qiniu.android.dns.DnsManager.query(DnsManager.java:116) at com.qiniu.android.dns.DnsManager.queryInetAdress(DnsManager.java:213) at com.qiniu.android.http.Client$1.lookup(Client.java:64) at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:172) at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:138) at okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:80) at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:178) at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:129) at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:98) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170) at okhttp3.RealCall.access$100(RealCall.java:33) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:120) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818) Caused by: android.system.ErrnoException: sendto failed: ENETUNREACH (Network is unreachable) at libcore.io.Posix.sendtoBytes(Native Method) at libcore.io.Posix.sendto(Posix.java:206) at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278) at libcore.io.IoBridge.sendto(IoBridge.java:513) ... 34 more

    Write tip

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

    Users with the same issue

    Indri YunitaIndri Yunita
    2 times, last one
    bayukresnobayukresno
    2 times, last one
    Alexandru PopaAlexandru Popa
    6743 times, last one
    ivotje50ivotje50
    9 times, last one
    Agócs TamásAgócs Tamás
    2 times, last one
    22 more bugmates