Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I was planning to create a mobile based web application in my laptop and test it on my andriod phone. I am trying to do that through a WIFI connection which connects both my phone and laptop. Once after i created the test page, i was trying to access the localhost site from my andrioid phone. But i'm not able to connect to my localhost site.

Can anyone please guide me how to connect the localhost site which i created to my android phone??

Thanks in advance.

I am using:
VS2012 - for web dev
Nexus 4 (4.3 version) - to access the site.
Posted

You need to host it somewhere over the internet. Right now its hosted on the webserver on the system which is not accessible from the internet. Try some free asp.net hosting sites .. This one is worth giving a try - My favourite one is smarterasp.net[^]
 
Share this answer
 
Hi ,

If you have wifi connection at your home , Then try to find out the public ip from your network provider and host your page on iis and open the iis port for that public ip. After that try to access your hosted page from that url on your device.It will work .
 
Share this answer
 
PC: localhost/testpage.html

IP: 74.3.155.214

So on your Phone: 74.3.155.214/testpage.html
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900