Home

How do I fix socket error 10061?

Alton Alexander
By Alton AlexanderUpdated on June 4th, 2022

Socket error #10061 is a connection refused error. This error code happens when the server is unreachable or is refusing the connection.

Users typically search for a solution by asking about:

  • socket error code 10061
  • socket error #10061

1. Verify that the email account settings are correct and updated

  1. Verify that the email account settings are correct and updated in order to fix socket error #10061.
  2. Verify that the email server is working and accepting email.
  3. Verify that the email client is configured to send and receive emails.
  4. Verify that the email server is able to send email to the email client.

2. Check if the email server is online and accessible

  1. Open a Command Prompt and navigate to the location where the email server is installed.
  2. Type the following command and press enter: netstat -an
  3. If the email server is online and accessible, you will see a list of active TCP and UDP ports on the server.
  4. Next, type the following command and press enter to check the status of the SMTP server: telnet mail.server.com 25
  5. If the SMTP server is online and accessible, you will see a response from the telnet command that indicates that the server is responding to requests.
  6. If the SMTP server is not online or accessible, you will see a response from the telnet command that indicates that the server is not responding.

3. Check if the firewall or antivirus is blocking the email server

The steps to check if the firewall or antivirus is blocking the email server are as follows:

  1. Open a command prompt.
  2. Type "netsh firewall show state" and press Enter.
  3. If the state of the firewall is "established," the firewall is not blocking the email server. If the state of the firewall is "pending," the firewall is blocking the email server. If the state of the firewall is "failed," the firewall is not functioning.
  4. Type "netsh advfirewall firewall add rule name="email server" dir=in protocol=tcp action=allow" and press Enter.
  5. Type "netsh advfirewall firewall show rule name="email server" and press Enter.
  6. If the state of the firewall rule is "allowed," the firewall is not blocking the email server. If the state of the firewall rule is "denied," the firewall is blocking the email server.

4. Disable the firewall or add the email server to the exceptions list

  1. Open the Windows Firewall.
  2. In the left pane, click Exceptions.
  3. In the right pane, click Add.
  4. In the Add an exception dialog box, click the name of the email server.
  5. Click OK.
  6. Close the Windows Firewall.

5. Change the SMTP port number to 587 or 465

  1. Open the Windows Firewall with administrator privileges.
  2. In the Firewall with administrator privileges window, click on the Advanced tab.
  3. In the Advanced Firewall Settings window, click on the SMTP Port Settings button.
  4. In the SMTP Port Settings window, click on the Change button.
  5. In the Change SMTP Port window, type 587 in the SMTP port number field and click on the OK button.
  6. In the SMTP Port Settings window, click on the Apply button.
  7. In the Firewall with administrator privileges window, click on the OK button.
  8. Close the Windows Firewall with administrator privileges window.

6. Check if the SSL option is enabled or disabled

  1. Launch Firefox and sign in.
  2. In the upper-left corner of the Firefox window, click the Firefox menu button (three lines in a row), and then click the Tools menu.
  3. In the Tools menu, click the Options menu.
  4. In the Options menu, click the Advanced tab.
  5. In the Security section, check the box next to the SSL option.
  6. Click the OK button.
  7. Close Firefox.