I have written a simple proxy server in java on my PC. What it basically does, is redirect the raw contents of a given URL, whether it is an image or a website etc. It works perfectly fine when I use it with my PC (http://localhost) or any other PC in my network.
It does not, however work when I try to use it with the browser in the Android Virtual Device. Output:
"Data connectivity problem
The server failed to communicate. Try again later."
I am using the local loopback, i.e. 10.0.2.2 to access my PC's server.
The server apparently makes a connection, but it crashes (..well, not exactly "crashes", but you know) with an exception: "java.net.SocketException: Software caused connection abort: socket write error"
Anyone have any ideas about what might be going on?