How to browse localhost on android device?


Question

I try to browse localhost on my htc magic. I have connected my device with eclipse via usb. browsing http://10.0.2.2 I get a "Page not avialable. I remember, some days ago it worked

but on the emulator I am able to browse localhost

any ideas? regards

1
52
3/10/2011 2:40:14 PM

Accepted Answer

I use my local ip for that i.e. 192.168.0.1 and it works.

32
8/1/2010 4:15:05 AM

Easier way to check is in browser of emulator type 10.0.2.2 instead of localhost.

Reference for localhost

Hope that helps! :)


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon