java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer) Over WIFI

Sumit Patel picture Sumit Patel · Oct 23, 2012 · Viewed 12.9k times · Source

When I am sending an image which is converted into string and welcome text with the request. the server do not responds for a long time and response me as java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)

This happens only on wifi . Please provide any solution for the same .

Answer

cafebabe1991 picture cafebabe1991 · Apr 11, 2013

I would recomend you to do these sanitary checks to reach to solution to this problem

  1. open your browser you are using and try copying the url(used as the request line) and paste it into your browser of your MOBILE DEVICE , if you still get the same error or may be connection refused that means your MOBILE and YOUR PC on which server runs are not on the same network.