在 IIS 上托管应用程序时,将 localhost 更改为 PC 的本地 ip 地址
嘿, 我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为没有理由不工作...假设 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.