1

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

Vishal Patel
  • 41
  • 4
  • 9

2 Answers2

1

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>
Prasad Jadhav
  • 5,090
  • 16
  • 62
  • 80
0

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

Lex Li
  • 60,503
  • 9
  • 116
  • 147