从移动设备查看 localhost 网站 [英] Viewing localhost website from mobile device

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

问题描述

我有一个 ASP.Net 网站托管在我的 Win8 的 localhost 上,该网站似乎在桌面上按预期运行,但现在我也想要在移动设备上测试站点网站以检查其呈现方式

无论如何我可以从我的移动设备访问该网站

我的移动设备和台式机通过路由器连接到同一个网络.

这是我的机器和路由器的详细信息.

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. 机器安装了运行 IIS 8.0.9200.16384 的 Win8 Pro
  2. 路由器是 TP-Link Basic 150Mbps.
  3. 设备是 Karbonn A15,Android - 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)

谁能告诉我如何将我的移动设备连接到 localhost 网站.

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

推荐答案

要从移动设备查看 localhost 网站,您必须按照以下步骤操作:

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

  • 在您的计算机中,您必须检索您的 IP 地址(运行 > cmd > ipconfig)
  • 如果您的本地主机使用特定端口(如 localhost:12345 ),您必须在计算机上打开该端口(控制面板 > 系统和安全 > 防火墙 > 高级设置并添加入站规则)
  • 最后,您可以通过移动设备访问您的网站:http://192.168.XX:12345/

希望对你有帮助

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

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