Recently began to study WCF. He wrote the simplest prilogu. The client sends the string, the server accepts and displays it. Everything works great on my computer at a local address. And when I try to contact via the web, an exception occurs:

System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at http: // (IP): 4000 / IContract that could accept the message.

Ports are open and accessible. Tell me, maybe I'm missing something? Here is the address:
Uri adress = new Uri("http://(Тут_IP_компа,_на_котором_сервер):4000/IContract");
I took my IP from this site: https://2ip.com.ua/ua I don’t know what to do, to be honest. I would be grateful for any hint.

Closed due to the fact that the essence of the question is incomprehensible to the participants of Streletz , aleksandr barakin , user207618, Bald , Grundy Aug 29 '16 at 19:11 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • and the ports are open? And ip static? - pavel
  • Is the service config configured to work with an external IP? - rdorn

2 answers 2

I took my IP from this site: https://2ip.com.ua/ua

You received the address of the gateway through which your computer "communicates" with the Internet.

accordingly, your program accesses the gateway, not your computer. with a very obvious result.


I hope you will be helped by the information from the answer to this question: Access to the server from the Internet

    I ordered a static IP, and connected to the Ethernet directly, without a router. It worked. Thanks to all.