Asp.Net IIS 托管

发布于 2024-10-07 12:02:47 字数 157 浏览 0 评论 0原文

我有一个在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

雄赳赳气昂昂 2024-10-14 12:02:47

使用您的互联网和 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.

浪漫之都 2024-10-14 12:02:47

是的。如果您的互联网地址是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文