Use Command Prompt to reset only the network layer that matches the symptom: ipconfig /flushdns for DNS lookup failures, netsh winsock reset for socket errors, netsh int ip reset for TCP/IP corruption, and adapter commands for Wi‑Fi or Ethernet issues. Pick the wrong reset and you can waste time, lose settings, or mask the real fault. This guide shows how to match each command to the exact problem and what to do after each reset.

What the network reset error means

What the network reset error means
Ethernet cables connected to a glowing network router on a desk

If webpages fail to load, the symptom usually points to one layer of the Windows network path, not the whole PC. The fastest first step is a DNS cache flush, because it is low-risk and often clears name-resolution failures before you move to deeper repairs. Command Prompt, or cmd.exe, is the Windows command-line interface used for these repair commands.

Signs the TCP/IP stack is broken

Look at the type of failure. If Windows gets a local IP address but cannot route traffic, or if the adapter keeps dropping off the network after reconnecting, the TCP/IP stack is a likely target. It controls IP addressing and routing behavior, so a reset can clear damaged configuration without changing every other setting.

Signs Winsock is the problem

When apps fail to reach the internet even though the adapter looks connected, Winsock may be involved. It is the Windows socket subsystem, and netsh winsock reset rebuilds its catalog and socket configuration. That is a common repair path for internet connectivity troubleshooting.

When a DNS flush is enough

If only some sites fail, or a browser shows old addresses while the network itself still works, ipconfig /flushdns is the safest first command. Microsoft Q&A recommends that command before using the Network Reset button. It clears the DNS resolver cache without changing saved Wi‑Fi profiles or adapter settings.

Likely causes

  • Corrupted DNS cache: name lookups point to stale or bad records.
  • Broken Winsock catalog: sockets and apps cannot open a normal connection path.
  • TCP/IP stack issues: IP addressing or routing settings no longer behave correctly.
  • Adapter or driver problems: wired or wireless hardware is present, but the driver or configuration is unstable.
  • Policy or permission blocks: elevated commands fail on managed devices or restricted accounts.

Network reset decision table

Network reset decision table
A command prompt reset screen with large network reset text

This table matches the symptom to the safest first command instead of running every repair in a row. Start with the least invasive fix that fits the failure you see.

Symptom Safest first command What it changes Admin required? Restart needed? Data or settings lost
Only some sites fail, or DNS lookups return stale results ipconfig /flushdns Clears the DNS resolver cache No No None
Apps cannot connect even though Wi‑Fi shows connected netsh winsock reset Clears the Winsock catalog and rebuilds socket configuration Yes Yes None, but saved connections may need recheck after reboot
IP address, routing, or adapter behavior looks corrupted netsh int ip reset Resets the TCP/IP stack Yes Yes Custom TCP/IP settings can be lost
Wi‑Fi keeps failing across many apps and settings changes do not help Windows Network Reset Restores default network settings and reinstalls network adapters No from Settings, but admin rights may be needed in managed setups Yes, automatic restart Saved Wi‑Fi networks and VPNs are removed

Say your laptop still connects to Wi‑Fi, but every browser throws DNS errors for some sites and local intranet pages are fine. Start with ipconfig /flushdns, not a full reset, because the adapter may be working and only the resolver cache is stale.

How do I fix DNS cache issues?

Use ipconfig /flushdns first when the problem looks like name resolution, not a dead adapter. It runs in Command Prompt and clears stored DNS answers so Windows asks again for fresh records. That makes it a low-risk test before any reset that changes adapter behavior.

  1. Press Win + R, type cmd, and press Enter, or open Start and search for Command Prompt.
  2. Run ipconfig /flushdns.
  3. Open the same site or app again and check whether the name resolves correctly.
  4. If the issue stays, move to the Winsock or TCP/IP steps below instead of repeating the same command.

On Windows 10 and Windows 11, the command is the same. The menu path is not.

How do you fix Winsock and TCP/IP problems?

How do you fix Winsock and TCP/IP problems?
A Windows menu highlighting Run as administrator for Command Prompt

Use these commands when the network layer looks damaged. netsh winsock reset clears the Winsock catalog, while netsh int ip reset resets the TCP/IP stack. Both require an elevated Command Prompt and both need a restart before the change takes effect.

  1. Open Start, search for Command Prompt, right-click the top result, and select Run as administrator.
  2. Run netsh winsock reset.
  3. Run netsh int ip reset.
  4. Restart Windows when prompted, or restart manually if the prompt does not appear.
  5. After restart, reconnect to your network and test browsing, app sign-in, and file sharing again.

ipconfig /release
ipconfig /flushdns
ipconfig /renew
netsh winsock reset
netsh int ip reset

These commands do different work. DNS flushing clears cached lookups. Winsock reset rebuilds socket behavior. TCP/IP reset changes the core addressing and routing configuration. Running all of them without a symptom match can make post-fix diagnosis harder.

Open Command Prompt the right way

Command Prompt can be opened from Start search or by pressing Win + R and typing cmd. For reset commands, use the elevated version. A normal prompt often returns access denied for network repair tasks.

What should you do before using a full reset?

Before you touch the Windows Network Reset button, rule out simple causes that sit outside the PC. Restart the router, confirm the adapter is enabled, and check whether the device is managed by work or school policy. A policy block can stop repair commands from sticking.

  1. Restart the router or modem and test the connection again.
  2. Open Device Manager > Network adapters and confirm the wired or wireless adapter is enabled.
  3. Check for driver problems and update or reinstall the adapter if Windows flags it.
  4. If the device is corporate-managed, confirm whether security policy blocks network changes.

Suppose a desktop loses Ethernet after a driver update, but Wi‑Fi still works on another device in the house. That points toward the adapter or driver on the PC, not the router, so a full network reset may be the wrong next step.

How do you use Windows network reset?

Windows Network Reset is different from Command Prompt repair commands. It restores default network settings, may remove saved Wi‑Fi networks and VPNs, reinstalls network adapters, and typically triggers an automatic restart. In Windows 11, the Settings path is Settings → Network & internet → Advanced network settings → Network reset.

  1. Open Settings > Network & internet > Advanced network settings > Network reset.
  2. Review the warning that saved Wi‑Fi profiles and VPN connections will be removed.
  3. Select Reset now.
  4. Wait for the automatic restart, which Microsoft Q&A says happens after 5 minutes.
  5. Reconnect to Wi‑Fi, sign back into VPNs, and reinstall any required adapter drivers if Windows does not restore them cleanly.

This path is broader than netsh. It resets network adapters to default configurations and can help with connectivity problems or adapter malfunctions when the command-line fixes do not clear the fault.

Why might CMD reset fail?

Reset commands can fail for three common reasons: you did not open Command Prompt as administrator, Windows policy blocks the change, or the adapter and service state prevents the reset from applying. When that happens, the command may do nothing, or it may return access denied.

  1. Reopen Command Prompt through Start and choose Run as administrator.
  2. Rerun the exact command: netsh winsock reset or netsh int ip reset.
  3. If the device is managed, ask whether policy blocks network repair commands.
  4. If the adapter still misbehaves, move to Device Manager > Network adapters and use Uninstall device, then scan for hardware changes.

Virtual switches, static IP settings, and VPN clients can sit on top of the same stack, so a command that works on a home PC may not behave the same on a managed laptop. In those cases, the broader Windows Network Reset or vendor support may be the safer path.

If that didn't work, try this next

  1. Run ipconfig /flushdns again only if the symptom is limited to name resolution.
  2. Use netsh winsock reset followed by netsh int ip reset from an elevated prompt.
  3. Restart Windows and test both wired and wireless connections separately.
  4. If the issue persists, use Windows Network Reset or reinstall the network adapter driver from Device Manager.

Prevention: after a successful fix, keep a note of any static IP, VPN, or virtual switch settings before the next change. Those settings are the ones most likely to need manual re-entry after a reset.

Keep reading

Frequently asked questions

How do I reset network settings with Command Prompt?

Open Command Prompt as administrator, then run the command that matches the symptom: ipconfig /flushdns for DNS issues, netsh winsock reset for socket problems, or netsh int ip reset for TCP/IP corruption. Restart Windows after the two netsh commands so the reset can take effect.

What does network reset do?

Windows Network Reset restores default network settings, removes saved Wi‑Fi networks and VPNs, reinstalls network adapters, and forces a restart. It is broader than the command-line tools and is usually the last step before driver or policy troubleshooting.

Which CMD commands reset the network stack?

The core commands are netsh winsock reset and netsh int ip reset. Use ipconfig /flushdns first if the issue looks limited to DNS. Run the netsh commands from an elevated Command Prompt, then restart the PC.

Will resetting the network delete my Wi‑Fi passwords?

Windows Network Reset can erase saved Wi‑Fi networks, which means you may need to re-enter the password for each SSID. The command-line resets do not normally remove those profiles, but they can still require a restart and a fresh connection test.

How long does a network reset take?

The repair commands themselves are usually quick, but the visible change happens after restart. Microsoft Q&A says the Windows Network Reset process needs an automatic restart after 5 minutes. Plan on a short outage while the PC restarts and reconnects.

Do I need administrator access to reset network settings in CMD?

Yes for netsh winsock reset and netsh int ip reset. Open Start, search for Command Prompt, right-click the result, and choose Run as administrator. ipconfig /flushdns can run from a regular prompt, but the deeper reset commands cannot.