Viewing localhost website from mobile device(从移动设备查看 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.
- 机器安装了运行 IIS 8.0.9200.16384 的 Win8 Pro
- 路由器是 TP-Link Basic 150Mbps.
- 设备是 Karbonn A15,Android - 4.0.4 (ICS)
- Machine has Win8 Pro Installed running IIS 8.0.9200.16384
- Router is TP-Link Basic 150Mbps.
- 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 网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:从移动设备查看 localhost 网站


- C# 中多线程网络服务器的模式 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 输入按键事件处理程序 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01