Asp.Net IIS 托管
我有一个在 LAN 上托管 iis 的 ASP.NET Web 应用程序。当我在 URL 框中输入我的本地 IP 地址时,我可以访问它。我的问题是,如果我想从 LAN 外部访问它,我是否必须将其端口转发到端口 80?现在我必须输入路由器的 IP 地址,而不是在 URL 框中输入我的本地 IP 地址?
I have an asp.net web application hosted iis on LAN. When i type in my local ip address in the URL box, i can access it. My question is, if i want to access it from outside the LAN, would i have to port forward it to port 80? And intead of typing my local ip address in the URL box, i would now have to type the routers ip adress??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用您的互联网和 LAN 地址。并在防火墙或端口 80 中为您的互联网地址设置网络转发。是的,您还需要对防火墙进行更改。
Use your internet and LAN address.and put a net forwarding in firewall or port 80 for your internet address.and yes you need to make changes in your firewall as well.
是的。如果您的互联网地址是 7.7.7.7,您的 LAN 地址是 10.10.10.10 - 您需要在路由器/防火墙中放置 NAT/端口转发条目,以便在 TCP 端口 80 上发送发往 7.7.7.7 至 10.10 的流量.10.10。在大多数家用路由器上,这是一项非常简单的任务。
Yes. If your internet address is 7.7.7.7 and your LAN address is 10.10.10.10 -- you'll need to put a NAT/Port-forwarding entry in your router/firewall to send traffic on TCP Port 80 destined for 7.7.7.7 TO 10.10.10.10. On most home routers this is a pretty simple task.