Reset Windows Networking Stack

Sometimes after cleaning up a computer which had a virus or malware problem it gets into a state where it has an IP address and can ping other machines but will not display web pages in your web browser.

Here are some commands to reset the networking stack in Windows if your web browser fails to connect…

Microsoft Windows

  1. Click Start and then command or cmd in the text field on the Start menu
  2. The Command Prompt icon will then appear in the Start menu
  3. Right click the Command Prompt icon to bring up a context menu
  4. From the context menu select Run As Administrator
  5. A dialogue box will then appear asking if you really want to run this command – Click Yes
  6. A scary black box should then appear (this is a good thing – you can now get stuff done)
  7. You need to type each command listed below into the black Command Prompt box and press Enter after each line.
ipconfig /flushdns

nbtstat -R

nbtstat -RR

netsh int reset all

netsh int ip reset c:\resetlog.txt

netsh winsock reset

Typically only netsh int ip reset is needed but the other stuff doesn’t hurt and may clear other issues.