Question

I know that when we use a virtual device for testing android applications, we have access to the machine with this IP : 10.0.2.2

But when I use a real hardware phone instead of a virtual one, I don't know how I can access to the machine?

Thanks for any help...

NOTE that currently I can run my applications on the connected phone.

Was it helpful?

Solution

To connect through Wifi Install connectify software in laptop to make a wifi hotspot. Then connect your phone to this hotspot.

You can find your local network's IP by go to cmd or press Winkey + R then type in "ipconfig". It will give out some information and your local IP should look like 192.168.1.x .

Using this IP you can connect to your local host from your phone

To connect through USB: You should go for REVERSE TETHERING...... May be these links would help you. http://www.orclage.com/connect-internet-pc-laptop-android-mobile-phone/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top