通过andriod手机从WIFI n / w访问网页 [英] Accessing a webpage from a WIFI n/w through an andriod phone
问题描述
我计划在笔记本电脑上创建一个基于移动设备的Web应用程序,并在我的手机上进行测试。我试图通过连接我的手机和笔记本电脑的WIFI连接来做到这一点。在我创建测试页后,我试图从我的手机中访问localhost网站。但是我无法连接到我的本地站点。
任何人都可以指导我如何将我创建的localhost站点连接到我的Android手机? br />
提前致谢。
我正在使用:
VS2012 - for web dev
Nexus 4(4.3版) - 访问该网站。
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.
推荐答案
您需要通过互联网在某处托管它。现在它托管在系统上的网络服务器上,无法从互联网访问。尝试一些免费的asp.net托管网站..这个值得一试 - 我最喜欢的是 smarterasp.net [ ^ ]
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[^]
如果您家中有wifi连接,那么尝试从您的网络提供商处找到公共IP并在iis上托管您的页面并打开该公共IP的iis端口。之后尝试从您设备上的该网址访问您的托管页面。它将工作。
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 .
PC:localhost / testpage.html
IP:74.3.155.214
所以在您的手机上:74.3.155.214/testpage.html
PC: localhost/testpage.html
IP: 74.3.155.214
So on your Phone: 74.3.155.214/testpage.html
这篇关于通过andriod手机从WIFI n / w访问网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!