Home

How to fix [WinError 10061] No connection could be made because the target machine actively refused it?

Alton Alexander
By Alton AlexanderUpdated on June 4th, 2022

The error code [winerror 10061] no connection could be made because the target machine actively refused it happens when the computer is unable to establish a connection with the target machine. This can be due to a number of reasons, such as the machine being turned off or being protected by a firewall.

Users typically search for a solution by asking about:

  • tcp error code 10061
  • [winerror 10061] no connection could be made because the target machine actively refused it

1. Check that the server is running and accessible on the network

  1. Open a command prompt and navigate to the C:\Windows\System32 folder.
  2. Type "netstat -an" and press Enter.
  3. Review the output for any errors or warnings.
  4. If there are any issues, then fix them.
  5. Type "netstat -ano" and press Enter.
  6. Review the output for any errors or warnings.
  7. If there are any issues, then fix them.

2. Check that the correct port is being used

  1. Check the IP address of the target machine
  2. Check if the target machine is on the same network as the controller
  3. If the target machine is not on the same network as the controller, then the port must be changed on the controller
  4. Check the port number on the controller
  5. If the port number is not correct, then the controller must be updated to use a different port

3. Check that the firewall is not blocking access to the server

The first step is to check the firewall settings. If the firewall is blocking access to the server, then the firewall settings must be changed. Next, the connection attempts must be made to the server. If the connection attempts are successful, then the problem is with the server and not the firewall. If the connection attempts are not successful, then the problem is with the firewall and the firewall settings must be changed.

4. Check that the client is using the correct IP address and port

  1. Open a command prompt and type "ipconfig"
  2. In the output, look for the "IP Address" and "IP Port" sections
  3. If the IP address and port are incorrect, please enter the correct information into the appropriate fields in your client's configuration file
  4. Re-boot the client computer
  5. If the problem persists, please submit a support ticket

Some users might also have success with the following opitons:

  1. Try connecting from another machine on the network