If you’re experiencing issues with your internet connection, such as websites not loading, limited or no connectivity, or unexplained network drops, your TCP/IP stack may be corrupted or misconfigured. Resetting the TCP/IP stack is one of the most useful solutions to fix such issues and restore normal internet access. This process restores the TCP/IP settings to their default configuration and resolves issues like unreliable internet connections, incorrect IP addresses, or problems with DNS resolution. Let’s understand what the TCP/IP Stack is, and how to reset the TCP/IP stack in Windows PC.
Quick Links
What Is TCP/IP Stack?
The TCP/IP or Transmission Control Protocol/Internet Protocol is the foundational communication protocol of the Internet and most local networks. It defines how data should be packetized, addressed, transmitted, routed, and received across a network, such as the Internet. The TCP/IP stack in Windows helps your PC communicate over the network and access the internet.
It’s a set of rules (protocols) that govern all forms of communication over a network.
Over time, software misconfigurations, malware, or improper network settings can cause the TCP/IP stack to malfunction. Resetting it clears any custom settings and restores the stack to its default state.
When Should You Consider Reset the TCP/IP Stack?
- Internet works on other devices but not on your Windows PC.
- You’re getting IP conflict or DNS-related errors.
- Websites load very slowly or not at all.
- You’ve recently removed malware or adware affecting network settings.
- Problems with Wi-Fi or Ethernet connectivity, even after rebooting your router.
- Troubleshooter suggests “reset the network adapter” or similar fixes.
How to Reset the TCP/IP Stack in Windows
The easiest and quickest method to reset the TCP/IP stack in Windows PC is, open the command prompt as administrator and run netsh int ip reset command. This process requires administrator privileges, so ensure you’re logged into an admin account.
- Press Windows + S, type cmd. Right-click Command Prompt and select Run as administrator.
- In the Command Prompt window, type netsh int ip reset and press Enter.
- This command will rewrite the TCP/IP registry keys to their default values.

Next, run the command netsh winsock reset to clear configurations for network services that rely on Winsock, which can also cause connectivity issues.
In addition, run the following commands to reset your network configuration.
- ipconfig /release
- ipconfig /renew
- ipconfig /flushdns

Once the command completes, restart your computer to apply the changes, and check if your internet connection is working perfectly.
What the netsh int ip reset Command Does
The netsh int ip reset Command removes any custom IP addresses, DNS servers, or gateway settings and re-establishes a fresh TCP/IP stack.
- Deletes and recreates registry keys related to TCP/IP.
- Removes custom configurations and returns network settings to their original defaults.
- Often resolves DNS issues, socket errors, and connectivity drops.
The netsh winsock reset command recovers the computer from any socket errors that arise when you download some unknown file, or due to a malicious script on the computer.
The Ipconfig /release tells the computer to release its currently assigned IP address and Ipconfig /renew requests a new IP address from the DHCP server.
And performing ipconfig /flushdns command clears your DNS cache, and removes old and inaccurate DNS information. You can read details of the use of the flush DNS command from here.
Automate the Process with a Batch File
To save time in the future, you can create a batch file to run all commands at once:
Open Notepad, copy and paste the following.
netsh int ip reset
netsh winsock reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
Now save the file with a .bat extension (e.g., reset_tcpip.bat). Right-click the file and select Run as Administrator to execute all commands.
What If the Reset Doesn’t Work?
If resetting the TCP/IP stack doesn’t resolve your issue, you need to perform additional steps like restart the laptop and router/modem, Run Network Troubleshooter, Update network adapter drivers, disable the firewall or proxy and more.
- Restart your router/modem: Power cycle your network hardware to rule out device issues.
- Update network drivers: Visit your PC or network adapter manufacturer’s website to download the latest drivers.
- Run the Network Troubleshooter: Go to Settings > System> Troubleshoot -> Other troubleshooters -> Click Run next to Network and Internet.
- Reset network settings: Go to Settings > Network & Internet > Advanced network settings > Network reset > Reset now. This reinstalls all network adapters and resets all network components.

- Check for malware: Run a scan with Windows Defender or a trusted antivirus to rule out infections affecting network settings.
- Contact your ISP: Persistent issues may indicate a problem with your internet service provider or network configuration.
In addition to maintain a healthy and secure network:
- Keep Windows updated: Regular updates patch network-related bugs.
- Avoid untrusted software: Some apps can alter network settings unexpectedly.
- Monitor your firewall: Ensure firewall settings aren’t blocking legitimate connections.
- Regularly flush DNS: Run ipconfig /flushdns periodically to prevent DNS cache issues.
