java.net.SocketException: sendto failed: EBADF (Bad file descriptor)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.net.SocketException: sendto failed: EBADF (Bad file descriptor)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:542)
at libcore.io.IoBridge.sendto(IoBridge.java:511)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:500)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:37)
at com.example.android.wifidirect.MediaProxy.processRequestOld(MediaProxy.java:138)
at com.example.android.wifidirect.MediaProxy.run(MediaProxy.java:98)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
5 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
9 times, 1 year ago
23 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.