The Default Gateway Is Not Available on Wi-Fi? How to Fix It in Windows
Your Wi-Fi keeps dropping, and the Windows network troubleshooter reports The default gateway is not available — often fixing it for a few minutes before it disconnects again.
Why: The default gateway is your router. This error means Windows briefly loses the path to it. The two common causes are a corrupted TCP/IP / Winsock configuration and the Wi-Fi adapter being put to sleep by Windows power management. Resetting the stack and stopping the adapter from sleeping usually keeps the connection stable.
Fix 1: Reset TCP/IP and Winsock, then renew the address
Open Command Prompt as administrator (right-click Start → Terminal (Admin) or Command Prompt (Admin)) and run these one at a time:
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
Then restart the PC. This rebuilds the network stack and pulls a fresh IP and gateway from the router, which clears most cases caused by a corrupted configuration.
Stack/network resets can interrupt the current connection and alter custom networking. Record static IP/DNS, VPN and virtual-switch settings and keep a local recovery route before using them on a managed or remotely accessed PC.
Fix 2: Stop Windows from turning off the Wi-Fi adapter
If the connection drops after idle time, power management is the likely culprit:
- Press Win + X → Device Manager.
- Expand Network adapters, right-click your Wi-Fi adapter, choose Properties.
- On the Power Management tab, untick Allow the computer to turn off this device to save power.
- Click OK and restart.
Fix 3: Prepare and restore the network adapter driver
Before uninstalling or removing a driver package, download the correct Wi-Fi/Ethernet driver for your exact PC/adapter and Windows version from its manufacturer’s site. Save the installer locally or on a USB drive. If this PC cannot connect, download it on another device and transfer it by USB. Know how to run that installer offline.
- In Device Manager → Network adapters, open the affected adapter’s Properties → Driver. If the issue began after a driver update and Roll Back Driver is available, try that first.
- If reinstalling is necessary, choose Uninstall device. Initially leave Attempt to remove the driver for this device unticked unless a package replacement is specifically needed and the offline installer is ready.
- Save work and restart. Windows may reinstall an available driver, but that is not guaranteed. If networking is still unavailable or the device has no driver, install the saved manufacturer package and restart as required.
Avoid removing your only working network driver’s package without a tested recovery route.
Fix 4: Run a full network reset
If it still drops, reset all network adapters and settings to defaults:
- Settings → Network & internet → Advanced network settings → Network reset.
- Click Reset now → Yes and let the PC restart.
This removes and reinstalls every network adapter and returns networking components to their defaults, so you’ll need to reconnect to Wi-Fi (and any VPN) afterward.
FAQ
What is the “default gateway” exactly? It’s your router — the device your PC sends traffic through to reach other networks and the internet. “Not available” means Windows temporarily can’t reach it.
Which fix should I try first? Start with Fix 1 (reset the stack and renew the address). If the drops line up with idle time, Fix 2 (power management) is the most common cure.
Will Network reset delete my files? No. It only removes saved networks and resets networking components, so you’ll re-enter Wi-Fi passwords and reconfigure VPNs afterward.
Sources: Microsoft Support — Backup a network driver before uninstalling, Microsoft Support — Fix Wi-Fi connection issues in Windows · Microsoft Learn — Guidance for troubleshooting TCP/IP communication