Access to a local host from a mobile phone

I am working on a mobile site using jQuery mobile and would like to test it using my Android browser.

My computer Windows 7 and Android support the same wireless network.

I usually access the mobile site from my machine: " http: //localhost/index.php/doctor "

I tried to access it using the wireless IP address from my mobile phone: " http://192.168.1.3/index.php/doctor "

but I get a webpage error message.

How can I access the local host from my Android phone ?!

+8
android mobile localhost
source share
1 answer

192.168.1.3 - the address of the local network. What you need to do is get the external IP address and put it in the phone url. You can do this by going to the command line and typing ipconfig , this should give you all your IP addresses of your computers along with the external IP address for your local web server. I doubt this has anything to do with your firewall. Most likely, you just need to find the correct IP address for your local web server.

Hope this helps.

+9
source share

All Articles