Reset Winsock & TCP / IP to Fix Internet Problem

(Last Updated On: March 27, 2019)

In this article I will share with you about Windows Socket and the Network Shell.

What is Netsh?

Netsh stands for network shell, is a command-line utility. It allows you to modify your current network configuration either from locally or remotely. Netsh first introduced in Microsoft’s Windows NT 2000 operating system.

Among many other things, netsh is very useful to reset the TCP/IP stack to default state. In the previous version of Windows such as Windows 98, you had to reinstall the TCP/IP to get rid of problem related to communicating with network device.

In addition, netsh also let you change your IP address of your computer. It can also be used for reading information from IPv6 stack. Moreover, from Windows Vista users can also edit wireless settings with the help of netsh command.

What is Winsock?

Winsock is abbreviation of Windows Socket. Before understanding what Winsock is you have to understand what is socket. We can define sockets very easily: Communication Port + IP address  =  Socket. Socket is a library that allows the interaction of a computer with a network or the Internet. So as to you are reading this now, surely your browser is using sockets.

Winsock is just a windows version of the socket. No need to worry, it is already installed on your pc, it is the wsock32.dll file for 32-bit applications.  And 16-bit applications use winsock.dll file. Any application that interact with the Internet user either the winsock.dll file or wsock32.dll file. Furthermore, Winsock includes support for sending and receiving data packets through BSD which uses Berkeley Sockets APIs version 4.3.

The applications that use Winsock are numerous. For example, browsers, email managers, Apache etc. To understand how does Winsock work see the picture below.

Windows Socket 2 Architecture

What Does Netsh Winsock Reset Do?

netsh winsock reset command basically reset the winsock catalog and brings it back to it’s default state. Winsock settings is responsible for the configuration of Internet connection. When this settings corrupt then you may get in trouble with Internet connectivity. Winsock settings may get corrupted due to many reasons. Such as spyware, malicious script, unknown file or web browser hijacking. At that time netsh winsock reset can help you get back to the Internet. If your Internet is not working properly, you can try this command to reset the winsock catalog. One thing to remember, netsh winsock reset does not reset the TCP/IP.

Winsock Reset Catalog

Netsh Winsock Reset in Windows 10

  1. Open run tool by pressing Windows + R keyboard shortcut. Type cmd.exe and press Ctrl+Alt+Enter to open command prompt as administrator.
  2. After opening the command prompt type the following command.
    netsh winsock reset
  3. Then press Enter. Wait for a few second to let command prompt execute the command. You will see a message saying “Winsock reset completed successfully”.
  4. Restart your computer.

Netsh Winsock Reset in Windows 8

  1. Move your mouse cursor to upper right corner. Vertical assistant will appear.
  2. Type cmd on the search box and press Enter.
  3. Right-click on command prompt from the search result and select Run as Administrator.
  4. Type the command below.
    netsh winsock reset
  5. Press Enter.
  6. Restart computer to finish.

Netsh Winsock Reset in Windows 7

  1. Click on the start menu.
  2. Type cmd on the search box and right-click on Command Prompt and select Run as Administrator.
  3. Type the following command on Command Prompt.
    netsh winsock reset
  4. Press Enter.
  5. Restart computer to finish.

Netsh Winsock Reset in Windows Vista

  1. Click on the start menu.
  2. Type cmd on the search box and right-click on Command Prompt and select Run as Administrator.
  3. Type following command on Command Prompt.
    netsh winsock reset
  4. Press Enter.
  5. Restart computer to finish.

Reset TCP/IP Stack

One of the components of the Internet connection is the built-in instruction set called TCP / IP. Sometimes TCP / IP becomes corrupted because of consequences of some viruses, the installation of incorrect network card drivers etc. If you can not connect to the Internet and all methods you have already tried, it is possible that the problem is with TCP / IP protocol.

Because TCP / IP is a component of the Windows kernel, it can not be removed. However, you can reset TCP / IP to the original settings using the NetShell (netsh).

To reset TCP / IP stack follow the steps below.

  1. Open Command Prompt by pressing Windows + R and type cmd and press Enter.
  2. Type the following at the command prompt and then press Enter.
    netsh int ip reset c: \ resetlog.txt
  3. Here c: \ resetlog.txt is the path to save the log file. You can specify any other path. Note : If you do not want to specify a path for saving the log file, use the following command.
    netsh int ip reset resetlog.txt
  4. Restart the computer.


WinsockFix is a utility for fixing network connection settings. It is a small, portable utility software which allows you to restore and reconfigure the network connection as a result of a network failure. Some of the functionality of WinSockFix are given below.

  1. It creates a backup of the current system settings.
  2. Disables all network adapters.
  3. Removes the Winsock and Winsock2 keys from the registry, replacing the required parameters with the default values. Rebuilding the Winsock service, including creating the routing tables with the netsh int ip reset resetlog.txt command.
  4. Enables network adapters.
  5. It checks the HOSTS file for the correctness of the localhost pointer (it must refer to the address

I hope you have fixed network problem on your compute with any of these methods. If you still have problem please let me know in comment.

About the author

Shoaib Ibn Abdullah

Add comment

Recent Posts

About Us

OS Troubleshoot is dedicated to provide the solutions of popular operating system’s problems. Our goal is to gather all the troubleshooting solutions in one place.