android connect to PC's localhost when debugger on mobile device
<p>I want to debug my android application, I connect the android device to my PC using the USB cable. In my application there is a button to connect with localhost, ip for localhost is <code>10.0.2.2</code> and the port is <code>8080</code>, I have read that when debugging on mobile, the ip <code>10.0.2.2</code> is the localhost for android device and not for my PC, so what changes should I make to the ip instead of <code>10.0.2.2</code>? or do I have to make another change?
In this case my android device is <code>sony ericsson xperia arc s</code>.</p>
