I want to make it so that the WCF service is available from the outside.

When testing, I used http: // localhost: 8080 and net.tcp: // localhost: 9100

Now I want to test the service from another PC and I changed localhost to my ip 10.2.16.22.

From another PC, this IP pings, but, for example, the link http://10.2.16.22:8080 does not open. (Everything is fine with mine).

Tell me what I could miss.

  • "I changed localhost to my ip 10.2.16.22" - where did you change it? Is there a router? Port forwarded to the machine with the service? - Zufir
  • Open the ports on the firewall: netsh advfirewall firewall add rule name="In_8080" dir=in action=allow protocol=TCP localport=8080 , netsh advfirewall firewall add rule name="In_9100" dir=in action=allow protocol=TCP localport=9100 - kmv
  • @kmv, do I need to do this on my machine, where I run the service? - iluxa1810
  • @ iluxa1810 yes, these commands allow incoming connections to ports 8080 and 9100 - kmv
  • @kmv probably your comment should be answered - Pavel Mayorov

1 answer 1

It is necessary on the machine with the WCF service to allow incoming connections to ports 8080 and 9100, using either the wf.msc snap- wf.msc , or by running the commands:

 netsh advfirewall firewall add rule name="In_8080" dir=in action=allow protocol=TCP localport=8080 netsh advfirewall firewall add rule name="In_9100" dir=in action=allow protocol=TCP localport=9100