4/23/2021 2:00 PM | |
Joined: 10/14/2010 Last visit: 8/7/2024 Posts: 59 Rating:
|
Hi All, I had the same issue '80C5' and resolved it by setting the 'Listen All' property on the protocol tab of the TCP/IP properties to No. Once I did this I was able to connect. If the 'Listen All' property is set to Yes then only the IPAll settings are used on the IP address tab. See step 4 of the following guide for more info: Hope this helps |
Last edited by: rico100 at: 04/23/2021 14:02:00Last edited by: rico100 at: 04/23/2021 14:10:25 |
|
This contribution was helpful to
2 thankful Users |
12/7/2021 6:49 AM | |
Posts: 1 Rating:
|
This exception message says you're trying to connect to the same host (127.0.0.1), while you're stating that your server is running on a different host. This 127.0.0.1 represents a'loopback'. It allows the computer to communicate with itself vianetwork protocol. Dns.GetHostEntry(IPAddress.Loopback).HostName returns the host name of your machine. When you pass a host name toTcpClient, it will resolve it to one or more IP addresses usingDns.GetHostAddresses(hostName). This includes the public and local IP addresses of your machine (e.g. 192.168.12.10), but not 127.0.0.1 (loopback address). So your client is trying to connect to any of the non-loopback addresses of your machine, while your server is listening only on theloopback address. So, no connection can be established. The solution to this problem is that connect to thesame end pointyour server is listening on. |
Follow us on