在 IIS 上托管应用程序时,将 localhost 更改为 PC 的本地 ip 地址

发布于 2024-10-06 23:10:08 字数 326 浏览 0 评论 0原文

嘿, 我在 IIS 7 上使用 wcf 服务托管我的 asp.net 应用程序,我希望这个位置可以位于局域网中我的计算机的地址,网络中的其他人可以访问它。 有可能吗?

现在看起来像: http://localhost/wcfAx/Service1.svc 如何做到这一点: http://192.168.2.33/wcfAx/Service1.svc ??

Hey,
I host my asp.net application with wcf service on IIS 7 and I want that this location could be possible at adress of my computer in lan, that other in network could get to it..
It is possible?

Now it looks like: http://localhost/wcfAx/Service1.svc
How to do like that : http://192.168.2.33/wcfAx/Service1.svc ??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

南巷近海 2024-10-13 23:10:08

我认为没有理由不工作...假设 192.168.2.33 是您的计算机在网络上的地址,并且您的防火墙允许通过端口 80 的流量。

I see no reason for that not to work... Providing that 192.168.2.33 is the address of your machine on the network, and that your firewall permits traffic through port 80.

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