Winsock Error 10054: Common Causes & How to Fix It

Disable the Windows firewall once this error occurs

by Henderson Jayden Harper
Henderson Jayden Harper
Henderson Jayden Harper
Passionate about technology, Crypto, software, Windows, and everything computer-related, he spends most of his time developing new skills and learning more about the tech world. He also enjoys... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • Running into the Winsock error 10054 indicates the connection has been reset by peer, or it has been closed by the remote host.
  • It can occur due to poor network connection and firewall interference.
  • Disabling Windows Defender Firewall on your PC will stop it from accessing and impeding your connections.
winsock error 10054
XINSTALL BY CLICKING THE DOWNLOAD FILE
To fix various PC problems, we recommend Restoro PC Repair Tool: This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:
  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

Winsock error 10054 can appear with a message saying Connection reset by peer, or An existing connection was forcibly closed by the remote host. It means the target host closed the connection unexpectedly. Hence, we’ll explain why it happened and how to fix it.

Also, you may be interested in our guide about fixing socket error 10060 connection timed out on Windows PC.

What causes the Winsock error 10054?

Some factors that can cause the error are:

  • Closing the connection midway – Just as the error message says, Windows 10054 can occur when you abruptly close or shut down the session while the computer tries to connect with a server.
  • Internet connection issues -If there is network congestion between the peer servers or the network is not stable, it can cause the connection to reset or be closed forcibly. Also, it can disable the server connections when connected to a proxy server.
  • Firewall interference with the connection – The activities of Windows Defender Firewall or other antivirus software may impede the connection between the servers. It checks every connection that goes in and out of the PC and can cause a delay in the process.
  • Outdated network driver – When the network drivers on your computer are outdated, they can affect your network performance. Also, it can cause incorrect assembling of the TCP/IP transport packets.

Depending on the circumstances of occurrence, these causes may vary on different computers. However, you can resolve the error by following the fixes in this article.

How can I fix the Winsock error 10054?

Observe the following preliminary checks before trying any advanced troubleshooting steps:

  • Restart the computer – It will refresh the system and is the quickest way to fix temporary issues affecting the computer.
  • Fix network-related issues – Power cycling the modem or router and updating the router firmware can resolve network issues.
  • Add Winsock to Firewall’s exception list – This will ensure that the Windows Defender Firewall will not flag anything related to Winsock as a threat or disrupt its activities.

If you can resolve the Winsock error, proceed with the solutions below:

1. Disable Windows Firewall

  1. Press Windows + R key to open the Run dialog box, type control, then press Enter to open the Control Panel.
  2. Click on the Windows Defender Firewall option.
  3. Click the Turn Windows Defender Firewall on or off option.
  4. Go to the Private and Public network settings, then click the radio buttons for the option to Turn off Windows Defender Firewall (not recommended).
  5. Restart your PC.

Expert tip:

SPONSORED

Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

Disabling the Windows Defender Firewall resolves any interference it’s causing your computer from connecting to the peer server.

You can read about how to disable Windows Defender if you encounter issues with it.

2. Update the network driver

  1. Press Windows + R keys to prompt the Run window, type devmgmt.msc, and click OK.
  2. Expand the Network adapters, right-click on the driver, then click Update driver from the drop-down.
  3. Select the Search automatically for drivers option and wait till the update finishes.
  4. Restart your PC and check if the error persists.

Updating the network driver will fix bugs and install the latest features to improve your computer driver performance. Check other steps for updating drivers on Windows 11 if you have any issues.

Various errors are the result of a malfunctioning driver. When this is the case, you may need to update or reinstall completely this specific component. As the process is not straight-forward to complete, we recommend using an automated tool for the job. Here's how to do it:
  1. Download and install DriverFix.
  2. Launch the app.
  3. Wait for the software to detect all your faulty drivers.
  4. You will now be presented with a list of all the drivers that have issues, and you just need to select the ones you’d liked fixed.
  5. Wait for DriverFix to download and install the newest drivers.
  6. Restart your PC for the changes to take effect.
DriverFix

DriverFix

Keep your Windows safe from any type of errors caused by corrupted drivers, by installing and using DriverFix today!
Free trial Visit website
Disclaimer: this program needs to be upgraded from the free version in order to perform some specific actions.

3. Reset TCP/IP Stack

  1. Left-click the Start button, type Command Prompt, and click the Run as administrator option.
  2. Click Yes on the User Account Control (UAC) prompt.
  3. Type the following in the command bar and press Enter: netsh int ip reset c:\resetlog.txt ipconfig /release ipconfig /renew  ipconfig /flushdns
  4. Restart your computer.

Resetting the TCP/IP will restore its default settings and fix any configuration issues causing the winsock error 10054. Check our guide on how to fix Command Prompt not working on your PC.

Further, do not hesitate to check how to resolve the network connections’ unexpected error on Windows 11.

Also, we have a detailed explanation of the causes and ways to fix the requested address is not valid in its context error on the PC.

Still having issues? Fix them with this tool:

SPONSORED

If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

This article covers:Topics: