Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Reset TCP/IP and Winsock in Windows

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Resetting TCP/IP and Winsock restores your network stack to its default state, which often fixes stubborn internet connection problems like limited connectivity, DNS errors, or network adapters that won't obtain an IP address. This guide walks you through the exact steps for Windows 10 and 11. You'll need administrator access to your PC, and you should close any open browsers or apps that use the network before you begin.

What You'll Need

  • An account with administrator privileges (you'll need to confirm a UAC prompt).
  • A stable power source (if on a laptop, plug it in).
  • Your Wi-Fi password or Ethernet cable handy, because the reset will disconnect you temporarily.

Step-by-Step

  1. Open Command Prompt as Administrator. Press Windows + R, type cmd, then press Ctrl + Shift + Enter. Click Yes when the User Account Control prompt appears.
  2. Reset Winsock. Type the following command and press Enter:
    netsh winsock reset
    You'll see a message that the Winsock catalog was reset successfully. This clears any corrupted socket entries.
  3. Reset TCP/IP. Type the following command and press Enter:
    netsh int ip reset
    This rewrites the TCP/IP registry keys to their defaults. You may see a message about restarting the computer.
  4. Flush DNS (optional but recommended). Type ipconfig /flushdns and press Enter. This clears the local DNS cache, which can resolve some browsing issues.
  5. Release and renew your IP address. Type ipconfig /release and press Enter, then type ipconfig /renew and press Enter. This forces your PC to request a fresh IP from your router.
  6. Restart your computer. Even if the commands didn't ask for it, a full restart ensures all network services reload cleanly.
  7. Reconnect to your network. After booting, join your Wi-Fi network or plug in your Ethernet cable. Test your connection by opening a website.

Common Mistakes

  • Forgetting to run as administrator. If you see "Access denied" or "The requested operation requires elevation," you didn't open Command Prompt as admin. Close and reopen it with Ctrl + Shift + Enter.
  • Not restarting after the reset. Some network components only reload on reboot. Skipping the restart often leaves the problem unchanged.
  • Running only one of the two commands. Winsock and TCP/IP are separate layers; resetting only one may not fix the issue. Always run both.
  • Typing commands incorrectly. A typo like netsh winsock reset (missing the 's' in winsock) will fail. Copy-paste the commands from this guide to avoid errors.

Tips

  • Export your IP configuration first. Before resetting, run ipconfig /all and save the output. This helps you reconfigure static IPs or note your DNS servers if you use custom ones.
  • Use the reset only when needed. This is a powerful tool; don't use it as a first-line fix. Try restarting your router and PC first, or running the Windows Network Troubleshooter (Settings > System > Troubleshoot > Other troubleshooters > Network Adapter).
  • If you use VPN software or proxy settings, note them. The reset may revert some network settings to defaults, so you might need to reconfigure your VPN client or proxy after the reset.
  • Consider updating your network driver. If the reset doesn't help, outdated drivers are a common cause. Check Device Manager > Network adapters, right-click your adapter, and choose "Update driver."

Troubleshooting

If the reset didn't fix your connection, work through these checks in order:

  1. Check if other devices work. If your phone or another PC can connect to the internet on the same network, the issue is isolated to your PC. If not, the problem is likely your router or ISP.
  2. Restart your router and modem. Unplug them for 30 seconds, plug them back in, and wait for the lights to stabilize. Then try connecting again.
  3. Run the Windows Network Troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters > Network Adapter, and run it. It can detect and fix common issues automatically.
  4. Check your network adapter is enabled. Open Settings > Network & Internet > Advanced network settings > More network adapter options. If your adapter is disabled, right-click it and select "Enable."
  5. Reinstall your network driver. In Device Manager, right-click your network adapter, select "Uninstall device," then restart your PC. Windows will reinstall the driver automatically. This is safe and doesn't delete personal files.
  6. Try a system restore. If the problem started recently, use System Restore (search for "Create a restore point" in the Start menu) to roll back to a point before the issue began. This won't affect your personal files, but it may remove recently installed programs.

Frequently Asked Questions

Will resetting TCP/IP and Winsock delete my files?

No. These commands only reset network protocol settings and the Winsock catalog. They do not touch your documents, photos, or installed applications.

Do I need to reset both TCP/IP and Winsock?

Yes, it's best to run both commands. They address different parts of the network stack: Winsock handles how programs access the network, while TCP/IP is the core protocol. Running both ensures a clean slate.

How often should I do this reset?

Only when you're experiencing network issues that other troubleshooting steps haven't resolved. It's not a routine maintenance task and shouldn't be done regularly.

Will this fix my Wi-Fi password issue?

No. The reset doesn't affect saved Wi-Fi passwords. If you're having trouble connecting to a specific network, try forgetting the network (Settings > Network & Internet > Wi-Fi > Manage known networks) and reconnecting with the correct password.

Can I run these commands on Windows 7 or 8?

Yes, the commands are the same for Windows 7, 8, 8.1, 10, and 11. The steps to open Command Prompt as administrator may differ slightly (in Windows 7, right-click Command Prompt and select "Run as administrator").

What if the reset makes my internet worse?

That's rare, but if it happens, try restarting your PC again. If the problem persists, you can reinstall your network driver as described in Troubleshooting. If that fails, consider a system restore to revert the changes.