Windows - Quick Fix for Networking Problems

Use this document to repair Internet connection problems in Windows 7, Vista and XP. These commands reset TCP/IP, Windows Socket, and Windows Firewall.

Programs like firewalls, antivirus applications, VPN clients, and various malware can cause Internet connection problems. When there are Internet connection problems in Windows 7, Vista, or XP, make sure there are no firewalls installed other than the Windows Firewall. If other firewalls are in use, consider uninstalling them and re-enable the Windows Firewall. If problems persist, try the following commands.

To automate this process, download and run networkquickfix.bat.

Windows 8

  1. Open the Metro screen and type "command" which will automatically open the search bar. Right-click on Command Prompt and choose Run as administrator at the bottom of the screen.

    command_prompt_win8.png

  2. Type the following commands, pressing Enter after each command:

    • netsh int ip reset reset.txt
    • netsh winsock reset
    • netsh advfirewall reset

  3. Restart the computer.

Windows 7 & Vista

  1. Click Start and type "command" in the search box. Right-click on Command Prompt and choose Run as administrator.

  2. Type the following commands, pressing Enter after each command:

    • netsh int ip reset reset.txt
    • netsh winsock reset
    • netsh advfirewall reset

  3. Restart the computer.

Windows XP

  1. Click Start, then select Run.

  2. Type "command" and press enter.

  3. Type the following commands, pressing Enter after each command:

    • netsh int ip reset reset.txt
    • netsh winsock reset
    • netsh firewall reset

    Note: Windows XP must have Service Pack 2 (or later) installed in order for these three commands to work properly. Otherwise, only the first command will work.

  4. Restart the computer.

Summary

If the commands are typed in properly but errors occur, Windows networking may be heavily damaged. In addition, if these commands do not return errors, yet do not fix the Internet connection after the computer has been restarted, consider further troubleshooting:

  • Power-cycle any external networking devices, i.e. routers, cable modems, DSL gateways, etc.
  • Check Device Manager for any problems with Network adapters, i.e. if they are disabled or if drivers are not properly installed. See Windows - Troubleshooting Using the Device Manager.



Keywords:windows xp vista 7 quick fix for networking problem network netsh winsock firewall reset troubleshoot connection issue internet broken connect malware sp2 sp3 microsoft resnet win winxp advfirewall win7 eight 8 win8   Doc ID:6653
Owner:Xander Z.Group:DoIT Help Desk
Created:2007-10-28 19:00 CDTUpdated:2015-10-13 10:45 CDT
Sites:DoIT Help Desk, DoIT Help Desk Training, DoIT Tech Store
Feedback:  150   92