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 10.0.2.2
and the port is 8080
, I have read that when debugging on mobile, the ip 10.0.2.2
is the localhost for android device and not for my PC, so what changes should I make to the ip instead of 10.0.2.2
? or do I have to make another change?
In this case my android device is sony ericsson xperia arc s
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…