从移动设备查看本地主机的网站 [英] Viewing localhost website from mobile device

查看:168
本文介绍了从移动设备查看本地主机的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我主持我的 Win8中的本地主机,该网站似乎是一个 ASP.Net 网​​站运行在桌面上符合市场预期,但现在我也想测试移动设备的网站网站,查看它如何呈现

有反正我可以从我的移动设备访问网站

我的移动设备和桌面计算机连接到路由器通过同一个网络。

下面是我的机器和路由器的详细信息。

I have an ASP.Net website hosted on my Win8's localhost, the site seems to be running as expected on the desktop, but now i also want to test the site website on mobile device to check how it renders

Is there anyway i can access the website from my mobile device

My Mobile Device and Desktop Machine are connected to the same Network via Router.

Here are the details of my machine and router.


  1. 机器有Win8的安装临运行IIS 8.0.9200.16384

  2. 路由器是TP-Link的基本150Mbps的。
  3. 设备是Karbonn A15,机器人 - 4.0.4(ICS)
  1. Machine has Win8 Pro Installed running IIS 8.0.9200.16384
  2. Router is TP-Link Basic 150Mbps.
  3. Device is Karbonn A15, Android - 4.0.4 (ICS)

谁能告诉我如何将我的移动设备连接到本地主机的网站。

Can anyone tell me how can i connect my mobile device to localhost website.

推荐答案

要查看您所必须遵循的步骤放入系统的移动设备本地主机的网站:

To view localhost website from mobile device you have to follow thoses steps :


  • 在你的电脑,你必须找回你的IP地址(运行> CMD> IPCONFIG)

  • 如果您的本地主机使用特定端口(如本地主机:12345),你必须打开你的计算机上的端口(控制面板>系统和安全>防火墙>高级设置并添加入站规则)

  • 最后,您可以通过导航到移动设备访问到您的网站: HTTP://192.168.XX:12345 /

  • In your computer, you have to retrieve your IP address (Run > cmd > ipconfig)
  • If your localhost use a specific port (like localhost:12345 ), you have to open the port on your computer (Control Panel > System and Security > Firewall > Advanced settings and add Inbound rule)
  • Finally, you can access to your website from mobile device by navigate to : http://192.168.X.X:12345/

希望它能帮助

这篇关于从移动设备查看本地主机的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆