无法在本地网络外访问我的网站 [英] Unable to access my website outside local network

查看:114
本文介绍了无法在本地网络外访问我的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS上托管我的网站。我可以通过localhost和系统的IP地址访问该网站,但我无法在本地网络之外访问它。我可以使用mstsc远程控制该机器。



我相信防火墙已完全禁用。可能是什么原因造成的?

iam hosting my website on IIS. I am able to access the website via localhost and the system's IP address, but iam unable to access it outside of my local network. I am able to remotely control that machine using mstsc.

I believe that the firewall is completely disabled. What could be the cause of this?

推荐答案

不太清楚。让我总结一下。你有:

Not very clear. Let me summarize it. You have:
-------   LAN   ------------   WAN   ------------
| IIS |---------| Firewall |---------| Computer |
-------         ------------         ------------



这是正确的吗?

你说,从计算机上你可以用RDP访问IIS,但不是它的网站?



原因应该是在防火墙上,有一个NAT(网络地址转换)规则,将端口3389(rdp)上的传入数据包重定向到IIS服务器。

如果你想访问网站,那么应该是80(http)和/或443(https)的规则。



编辑:

它也可能是您的网站可能正在侦听地址127.0.0.1(localhost),但不是在LAN地址(我不知道)上。您可以在IIS MMC控制台中修复它。不是它不能,我误读并认为该站点只能通过localhost访问。


Is this correct?
And you say, from Computer you can access IIS with RDP, but not it's website?

The reason should be that, on the firewall, there is a NAT (Network Address Translation) rule that redirects incoming packets on port 3389 (rdp) to IIS Server.
If you want to also access the website, then there should be a rule for port 80 (http) and/or 443 (https).


It could also be possible that your website is listening on address 127.0.0.1 (localhost), but not on LAN address (which I don't know). You can fix that in IIS MMC console. Not it can't, I misread and thought the site were only accesible through localhost.


这篇关于无法在本地网络外访问我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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