.NET Service System.Net.Sockets.SocketException: 'No such host is known'
问题 I deployed a .NET Windows Service on Azure Virtual Machine running Windows Server with an opened port that allow me to connect to it, this service is like a server using socket. The problem is that when I try to connect from my PC to that hosted server it doesn't work and I get this exception: System.Net.Sockets.SocketException: 'No such host is known' . The port is opened and visible from my PC. Can someone tell me why I get that exception? If I run locally all works ok. 回答1: The Exception