I am making an outbound connection using the DNS name on a server other than localhost and I get this exception:
System.Net.WebException: cannot connect to the remote server ---> System.Net.Sockets.SocketException: the connection could not be completed because the target machine actively refused it 127.0.0.1► 555
The text implies that the TARGET machine refused the connection, but the IP address and port are from the local host, which is confusing. Similarly, is the IP address really the outgoing IP and port, although the exception was caused because the target refused the connection? Or is this an exception to the local firewall blocking the outgoing connection?
source
share