문제

I have created one webservice which I have hosted in my IIS, now I want to access or call that webservice from LAN connected PC.

So please help me out.

Things I have tried are :

Ping to check connectivity

Using IpAddress I tried to access it from other PC - Errors I have got like -

  1. Connection timeout
  2. Unable to connect host

e.g : http://192.168.100.157/NewWebservice/WebService1.asmx

도움이 되었습니까?

해결책

Try adding following code in config file:

<client>
<endpoint address="http://192.168.100.157/NewWebservice/WebService1.asmx" binding="basicHttpBinding"
          contract="ClassABC" bindingConfiguration ="httpBinding"
          name="BasicHttpBinding_IABC" />
</client>

다른 팁

Make sure you open port 80 in Windows Firewall (built in) or any other firewall solution installed on that IIS machine.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top