"No connection could be made because the target machine actively refused it"
Error 10061, WSAECONNREFUSED, or "No connection could be made because the taget machine actively refused it" is a network-related error that is often seen when attempting to establish a TCP socket connection to a device.
Generally, it occurs because something is restricting access to the endpoint (via IP Address or Hostname) or to the port that should be used for communcation. Here are some specific causes that we have seen with our users; however the causes are not limited to this list:
- There is a firewall blocking traffic across the desired port
- The process that is attempting the connection is not running
- The device is listening on a different port
- The IP Address or the Hostname is incorrect or not accessible
- The device limits the number of concurrent connections across a single port
For tips on troubleshooting network-related issues, see our blog here: https://blog.softwaretoolbox.com/using-ping-tracert-portqry-wireshark-troubleshooting