netsh int ip reset
Reset your TCP/IP stack to default to fix stubborn network problems.
netsh int ip reset
Command: netsh int ip reset
Category: Network
Type: CMD
Purpose
Resets the TCP/IP (Transmission Control Protocol/Internet Protocol) stack to its default installation state. This powerful command can fix deep network issues caused by corrupted network settings, malware modifications, or misconfigured network parameters.
Quick Summary
When network troubleshooting steps fail and connectivity issues persist, resetting the TCP/IP stack often resolves stubborn problems. This command rebuilds the entire network configuration to factory defaults, clearing corrupted settings that prevent network communication. Essential for fixing persistent network issues that other methods can't resolve.
How to Use
- Open Command Prompt as Administrator.
- Type
netsh int ip resetand press Enter. - Alternatively, create a reset log:
netsh int ip reset resetlog.txt - Restart your computer for changes to take full effect.
- Reconfigure any custom network settings after restart.
Full syntax:
netsh int ip reset [log_file_path]
Tips and Best Practices
- Always backup network settings before resetting (note custom IPs, DNS servers, etc.).
- Requires administrator privileges - Must run as Administrator.
- Restart is required - Changes don't fully apply until you reboot.
- Reconfigure custom settings - Static IPs, custom DNS, etc. will be lost.
- Save a reset log - Use
resetlog.txtparameter to document what was changed. - Last resort tool - Try simpler fixes first (flushdns, release/renew, adapter restart).
- Consider resetting Winsock catalog too:
netsh winsock reset
Common Use Cases
- Persistent connectivity issues: Can't connect to internet despite working hardware.
- Corrupt network stack: Error messages about network configuration.
- After malware removal: Malware modified network settings.
- Failed network updates: Windows updates corrupted network configuration.
- "No internet access" - Shows connected but no internet, even with working router.
- IP configuration errors: Repeated DHCP or IP configuration failures.
- Before clean Windows install: Nuclear option when nothing else works.
Prerequisites
- Administrator rights required (mandatory)
- Windows Command Prompt or PowerShell
- Available on Windows XP and later
- Important: Be ready to reconfigure network settings after restart
- Document any custom network settings before running
What Gets Reset
This command resets:
- IP address configuration to DHCP
- DNS server addresses to automatic
- All TCP/IP registry settings
- Network adapter TCP/IP bindings
- IP routing tables
- IPsec policies related to IP
This command does NOT affect:
- Physical network adapter drivers
- Network adapter hardware settings
- Wi-Fi passwords or connection profiles
- Firewall rules
- Network shares or mapped drives
Complete Network Reset Sequence
For maximum effectiveness, perform these steps in order:
-
Document current settings:
ipconfig /all > network-backup.txt -
Reset Winsock Catalog:
netsh winsock reset -
Reset TCP/IP Stack:
netsh int ip reset resetlog.txt -
Reset Windows Firewall (optional):
netsh advfirewall reset -
Flush DNS:
ipconfig /flushdns -
Release and renew IP:
ipconfig /release ipconfig /renew -
Restart computer
Troubleshooting
- "Access denied" - Must run Command Prompt as Administrator.
- "The requested operation requires elevation" - Same as above; use "Run as administrator."
- Still have problems after reset - Also run
netsh winsock resetand restart. - Lost custom settings - Reconfigure static IP, DNS servers, etc. after restart.
- Network adapter not working - Update or reinstall network adapter drivers.
- Multiple adapters confused - Disable unused network adapters in Device Manager.
After Running the Command
Reconfigure these settings if you had custom configuration:
-
Static IP address:
- Open Network Connections
- Right-click adapter > Properties
- IPv4 > Properties
- Enter IP, subnet, gateway
-
Custom DNS servers:
- Same location as above
- Enter preferred and alternate DNS servers
- Example: Google DNS (8.8.8.8, 8.8.4.4) or Cloudflare (1.1.1.1)
-
VPN connections:
- Reconnect VPN
- May need to reconfigure VPN client
-
Proxy settings:
- Reconfigure if using proxy server
- Settings > Network & Internet > Proxy
Related Reset Commands
Reset Winsock Catalog (run with TCP/IP reset):
netsh winsock reset
Reset Windows Firewall:
netsh advfirewall reset
Reset IPv6:
netsh interface ipv6 reset
Reset all network components (comprehensive):
netsh winsock reset
netsh int ip reset
netsh advfirewall reset
ipconfig /flushdns
ipconfig /release
ipconfig /renew
When to Use vs. Other Methods
Use TCP/IP reset when:
- Simple troubleshooting didn't work (ipconfig release/renew, etc.)
- Network stack is corrupted
- After removing malware
- Persistent "limited connectivity" issues
- No internet despite proper configuration
Try these first before resetting:
- Restart router and modem
ipconfig /releaseandipconfig /renewipconfig /flushdns- Restart network adapter
- Update network drivers
- Run Network Troubleshooter
Understanding the Reset Log
If you specify a log file path:
netsh int ip reset resetlog.txt
The log contains:
- Registry keys that were reset
- Values that were changed
- Timestamp of reset operation
- Success/failure status
Review this log if you need to know exactly what was changed.
PowerShell Alternative
For PowerShell users:
# Reset TCP/IP
netsh int ip reset
# Or use PowerShell cmdlets:
Remove-NetIPAddress -Confirm:$false
Remove-NetRoute -Confirm:$false
Related Tools
netsh winsock reset- Reset Winsock catalogipconfig /release- Release IP addressipconfig /renew- Renew IP addressipconfig /flushdns- Clear DNS cache- Network Troubleshooter - Windows built-in troubleshooter
Get-NetAdapter(PowerShell) - View network adapter status