简体   繁体   中英

Access website on a local IIS from a mobile phone

我在本地 IIS 服务器上上传了我的 ASP.NET 网站 我使用的是 Windows 8.1 pro,并想通过另一台 PC 和手机(Windows 手机或安卓)访问该网站 我想知道如何配置我的网络和我的服务器虽然做

First, both devices should be in the same network. Then hit windows key and type "Windows Defender Firewall". In advance settings, you can add a new Inbound rule. Next, select the port option and give your port number. After creating a new Inbound rule you can connect using the IP address and port. eg: 192.168.8.102:8000

显然我愚蠢的bitdefender是问题所在,尽管我尝试禁用它的防火墙,但显然它不会停止提供自己的最后一部分,直到您完全卸载它再次感谢您的帮助

  1. you have to find your iis machines' ip address - you can use service like: http://www.whatismyip.com/

  2. open your firewall port for whatever port you set for the website in iis. (Firewall port opening tutorial: http://windows.microsoft.com/en-us/windows/open-port-windows-firewall#1TC=windows-7 )

  3. then on your another pc or mobile, just navigate using the ip you found on setp 1 with the port number you set on iis.

I was using MachineName:Port , thus was not working. When using MachineIP:Port it works, however. I found that mobile cannot resolve the ip of machine using its name, as a normal PC can do (PC's Chrome works using machine name, but Android's one does not work unless using explicit IP).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM