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 网站
基础教程推荐
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- WPF 模态进度窗口 2022-01-01
