【发布时间】:2011-03-23 00:04:59
【问题描述】:
我已经使用 http://msdn.microsoft.com/en-us/library/ms734712.aspx 中提到的计算器演示创建了 WCF 客户端/服务器应用程序
当我在我的电脑(名为 PC1)中启动 WCF 服务器时,我可以使用 Internet Explorer 打开http://localhost:8000/ServiceModelSamples/Service。
我现在正尝试从另一台 PC(名为 PC2)上对其进行测试。因此将 URI 更改为 http://PC1:8000/ServiceModelSamples/Service ,并在 PC1 上重新启动 WCF 服务器。我可以从 PC1 打开页面 http://PC1:8000/ServiceModelSamples/Service,但我无法从 PC2 打开该 URL。它说找不到页面。我已经使用 ping 命令检查了 PC1 和 PC2 之间的通信,它 ping 正常。
谁能告诉我是否需要配置一些东西?
【问题讨论】: