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

  1. Click the Start button or press the Windows key.
  2. Type cmd or Command Prompt into the search bar.
  3. Right-click on Command Prompt from the search results and select Run as administrator.
  4. 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:

  1. In the Command Prompt window, type the following command:

    netsh winsock reset
  2. Press Enter.

  3. 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.

  1. In the same Command Prompt window, type the following command:

    netsh int ip reset
  2. Press Enter.

  3. 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.txt

Step 4: Restart Your PC

For the changes to take full effect, you must restart Windows 11:

  1. Type the following command and press Enter to restart immediately:

    shutdown /r /t 0
  2. Alternatively, 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.