Using netsh command to reset the TCP/IP stack in Windows

Use a manual method to reset TCP/IP


Note This section is intended for advanced computer users. If you are not comfortable with advanced troubleshooting, ask someone for help or contact Support. For information about how to contact Support, see the Microsoft Help and Support contact information Web site:

The reset command is available in the IP context of the NetShell utility. Follow these steps to use the reset command to reset TCP/IP manually:

  1. To open a command prompt, click Start and then click Run. Copy and paste (or type) the following command in the Open box and then press ENTER

    cmd
  2. At the command prompt, copy and paste (or type) the following command and then press ENTER:

    netsh int ip reset c:\resetlog.txt

    Note If you do not want to specify a directory path for the log file, use the following command:

    netsh int ip reset resetlog.txt
  3. Reboot the computer.


When you run the reset command, it rewrites two registry keys that are used by TCP/IP. This has the same result as removing and reinstalling the protocol. The reset command rewrites the following two registry keys:

SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
SYSTEM\CurrentControlSet\Services\DHCP\Parameters\

To run the manual command successfully, you must specify a file name for the log, in which the actions that netsh takes will be recorded. When you run the manual command, TCP/IP is reset and the actions that were taken are recorded in the log file, known as resetlog.txt in this article.

The first example, c:\resetlog.txt, creates a path where the log will reside. The second example, resetlog.txt, creates the log file in the current directory. In either case, if the specified log file already exists, the new log will be appended to the end of the existing file

10 Comments

  1. of course like your web-site however you have to test the spelling on several of your posts. Many of them are rife with spelling problems and I in finding it very troublesome to tell the reality then again I?¦ll certainly come again again.

  2. An impressive share, I simply given this onto a colleague who was doing a bit of evaluation on this. And he in fact bought me breakfast because I discovered it for him.. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for spending the time to debate this, I feel strongly about it and love studying more on this topic. If attainable, as you change into expertise, would you thoughts updating your weblog with more details? It is highly helpful for me. Huge thumb up for this weblog publish!

  3. Hi! I know this is kinda off topic but I was wondering which blog platform are you using for this site? I’m getting fed up of WordPress because I’ve had issues with hackers and I’m looking at options for another platform. I would be awesome if you could point me in the direction of a good platform.

  4. Undeniably believe that which you said. Your favorite reason appeared to be on the internet the easiest thing to be aware of. I say to you, I definitely get annoyed while people think about worries that they just do not know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people can take a signal. Will probably be back to get more. Thanks

Leave a Reply

Your email address will not be published.