Android : Socket – java.net.SocketException: sendto failed: EPIPE (Broken pipe)

The peer closed the connection while you were writing to it. That usually means you sent it something it didn’t understand. Is it perhaps an HTTP server? Or some other protocol that you haven’t implemented in your client code?

Leave a Comment