1

我创建了一个托管在 IIS 中的 Web 服务,现在我想从连接 LAN 的 PC 访问或调用该 Web 服务。

所以请帮帮我。

我尝试过的事情是:

Ping 检查连接性

使用 IpAddress 我尝试从其他 PC 访问它 - 我遇到的错误是 -

  1. 连接超时
  2. 无法连接主机

例如:http://192.168.100.157/NewWebservice/WebService1.asmx

4

2 回答 2

1

尝试在配置文件中添加以下代码:

<client>
<endpoint address="http://192.168.100.157/NewWebservice/WebService1.asmx" binding="basicHttpBinding"
          contract="ClassABC" bindingConfiguration ="httpBinding"
          name="BasicHttpBinding_IABC" />
</client>
于 2013-04-09T05:57:03.800 回答
0

确保在 Windows 防火墙(内置)或安装在该 IIS 机器上的任何其他防火墙解决方案中打开端口 80。

于 2013-04-09T08:21:58.100 回答