Back to docs
Tools - NetworkUpdated: November 23, 2024

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

  1. Open Command Prompt as Administrator.
  2. Type netsh int ip reset and press Enter.
  3. Alternatively, create a reset log: netsh int ip reset resetlog.txt
  4. Restart your computer for changes to take full effect.
  5. 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.txt parameter 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:

  1. Document current settings:

    ipconfig /all > network-backup.txt
    
  2. Reset Winsock Catalog:

    netsh winsock reset
    
  3. Reset TCP/IP Stack:

    netsh int ip reset resetlog.txt
    
  4. Reset Windows Firewall (optional):

    netsh advfirewall reset
    
  5. Flush DNS:

    ipconfig /flushdns
    
  6. Release and renew IP:

    ipconfig /release
    ipconfig /renew
    
  7. 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 reset and 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:

  1. Static IP address:

    • Open Network Connections
    • Right-click adapter > Properties
    • IPv4 > Properties
    • Enter IP, subnet, gateway
  2. 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)
  3. VPN connections:

    • Reconnect VPN
    • May need to reconfigure VPN client
  4. Proxy settings:

    • Reconfigure if using proxy server
    • Settings > Network & Internet > Proxy

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 /release and ipconfig /renew
  • ipconfig /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
  • netsh winsock reset - Reset Winsock catalog
  • ipconfig /release - Release IP address
  • ipconfig /renew - Renew IP address
  • ipconfig /flushdns - Clear DNS cache
  • Network Troubleshooter - Windows built-in troubleshooter
  • Get-NetAdapter (PowerShell) - View network adapter status