java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer)

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by jconder
, 1 year ago
sendto failed: ECONNRESET (Connection reset by peer)
via Stack Overflow by Ziad Halabi
, 1 year ago
sendto failed: EBADF (Bad file descriptor)
via Stack Overflow by prom85
, 1 year ago
sendto failed: ECONNRESET (Connection reset by peer)
via codegur.com by Unknown author, 1 year ago
sendto failed: ECONNRESET (Connection reset by peer)
java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer)
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)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:504)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:37)
at fi.iki.elonen.NanoHTTPD$Response.sendBody(NanoHTTPD.java:1620)
at fi.iki.elonen.NanoHTTPD$Response.sendBodyWithCorrectEncoding(NanoHTTPD.java:1593)
at fi.iki.elonen.NanoHTTPD$Response.sendBodyWithCorrectTransferAndEncoding(NanoHTTPD.java:1583)
at fi.iki.elonen.NanoHTTPD$Response.send(NanoHTTPD.java:1550)
at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:937)
at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

2 times, 1 year ago
33 times, 1 year ago
Once, 1 year ago
4 times, 1 year ago
Once, 1 year ago

Write tip

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