Winsock Error 10054: Common Causes & How to Fix It
Disable the Windows firewall once this error occurs
- 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 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
- Press Windows + R key to open the Run dialog box, type control, then press Enter to open the Control Panel.
- Click on the Windows Defender Firewall option.
- Click the Turn Windows Defender Firewall on or off option.
- Go to the Private and Public network settings, then click the radio buttons for the option to Turn off Windows Defender Firewall (not recommended).
- Restart your PC.
Some PC issues are hard to tackle, especially when it comes to missing or corrupted system files and repositories of your Windows.
Be sure to use a dedicated tool, such as Fortect, which will scan and replace your broken files with their fresh versions from its repository.
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
- Press Windows + R keys to prompt the Run window, type devmgmt.msc, and click OK.
- Expand the Network adapters, right-click on the driver, then click Update driver from the drop-down.
- Select the Search automatically for drivers option and wait till the update finishes.
- 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.
- Download and install DriverFix.
- Launch the app.
- Wait for the software to detect all your faulty drivers.
- 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.
- Wait for DriverFix to download and install the newest drivers.
- Restart your PC for the changes to take effect.
DriverFixKeep your Windows safe from any type of errors caused by corrupted drivers, by installing and using DriverFix today!
3. Reset TCP/IP Stack
- Left-click the Start button, type Command Prompt, and click the Run as administrator option.
- Click Yes on the User Account Control (UAC) prompt.
- Type the following in the command bar and press Enter:
netsh int ip reset c:\resetlog.txt
- 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 experiencing issues?
If the above suggestions have not solved your problem, your computer may experience more severe Windows troubles. We suggest choosing an all-in-one solution like Fortect to fix problems efficiently. After installation, just click the View&Fix button and then press Start Repair.