Question

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

Was it helpful?

Solution

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>

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top