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 网站
基础教程推荐
- 全局 ASAX - 获取服务器名称 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
