How to Reset TCP/IP and Winsock in Windows 11
Network connectivity issues in Windows 11 can often be resolved by
restoring network components to their default state. This guide provides
a straightforward method to reset the Winsock catalog and TCP/IP stack
protocols using the built-in Network Shell (netsh)
command-line utility, which clears corrupted network sockets, refreshes
configuration files, and restores internet connectivity.
Step 1: Open Command Prompt as Administrator
- Click the Start button or press the Windows key.
- Type
cmdorCommand Promptinto the search bar. - Right-click on Command Prompt from the search results and select Run as administrator.
- Click Yes if prompted by User Account Control (UAC).
Step 2: Reset the Winsock Catalog
The Winsock catalog handles input and output requests for internet applications. To reset it:
In the Command Prompt window, type the following command:
netsh winsock resetPress Enter.
You will see a confirmation message stating: Successfully reset the Winsock Catalog. You must restart the computer in order to complete the reset.
Step 3: Reset the TCP/IP Stack
The TCP/IP stack is responsible for managing data transmission across networks. Resetting it rewrites the registry keys related to network protocols.
In the same Command Prompt window, type the following command:
netsh int ip resetPress Enter.
The system will process the reset across various sub-interfaces and display a series of Resetting… OK! confirmations.
(Optional) If you want to specify a log file for the TCP/IP reset, you can use:
netsh int ip reset c:\resetlog.txtStep 4: Restart Your PC
For the changes to take full effect, you must restart Windows 11:
Type the following command and press Enter to restart immediately:
shutdown /r /t 0Alternatively, restart your computer manually via the Start menu > Power > Restart.
Once your computer restarts, the network protocols and sockets will be restored to their factory defaults, clearing common connection drops, DNS lookup failures, and IP configuration errors.