How to Fix "Default Gateway Is Not Available"
If Windows tells you the “Default gateway is not available,” your computer cannot reach your router, which is why you have no internet even though Wi-Fi or Ethernet shows as connected. The good news is that this is almost always a software, driver, or settings problem on the PC side, not a broken router, and it is usually fixable in a few minutes without reinstalling anything. This guide works through the fixes in order, starting with the quickest.
What This Error Actually Means
Your default gateway is your router’s IP address, the doorway between your local network and the internet. When your computer cannot reach that door, data has nowhere to go, so the connection shows as active but nothing loads. The common causes are an outdated or corrupted network driver, a power-saving setting that switched off your adapter, third-party antivirus interfering with network settings, or a corrupted IP configuration. It is a close cousin of the “Wi-Fi doesn’t have a valid IP configuration” error, and the fixes below address each of these causes.
A useful note before you start: if the error returns after every restart, the cause is almost certainly a driver issue, a power-saving setting, or antivirus interference, so pay special attention to those steps. If you are not sure this is your exact error, our guide on why you can’t connect to home Wi-Fi helps you diagnose it.
Fix 1: Restart Your PC and Router
Start simple, because this resolves the issue surprisingly often. Restart your computer, and power-cycle your router by unplugging it for about 30 seconds, then plugging it back in and letting it fully reconnect. This refreshes the network services on both ends and clears temporary glitches. If the error is gone afterward, you are done.
Fix 2: Run the Windows Network Troubleshooter
Windows has a built-in repair tool that often fixes this automatically by resetting the adapter or renewing your network settings.
On Windows 11, go to Settings, then System, then Troubleshoot, then Other troubleshooters, and run the Network and Internet troubleshooter. On Windows 10, go to Settings, then Network and Internet, then Status, and run the Network troubleshooter. Let it complete and apply any fixes it suggests.
Fix 3: Reset the TCP/IP Stack and Renew Your Connection
A corrupted network configuration is a frequent cause, and resetting it gives the connection a clean start. Open Command Prompt as an administrator (search for cmd, right-click, and choose Run as administrator), then type these commands one at a time, pressing Enter after each:
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
The first two reset the network stack, the next two get a fresh IP address from your router, and the last clears the DNS cache. Restart your computer after running them. For most people, Fixes 1 through 3 solve the problem within a few minutes.
Fix 4: Update or Reinstall the Network Driver
If the error persists or keeps coming back, the network driver is the likely culprit.
- Right-click the Start button and open Device Manager.
- Expand Network adapters.
- Right-click your adapter (Wi-Fi or Ethernet) and choose Update driver, then Search automatically for drivers.
If updating does not help, right-click the adapter and choose Uninstall device, then restart your computer. Windows reinstalls the driver fresh on reboot, which clears a corrupted driver. Keeping your network drivers current is the best way to prevent this error from returning.
Fix 5: Turn Off Power Saving for the Adapter
This is the fix people miss, and it is the classic reason the error reappears after sleep or a restart. Windows can switch off your network adapter to save power and then fail to wake it properly.
- Open Device Manager and expand Network adapters.
- Right-click your adapter and choose Properties.
- Open the Power Management tab.
- Uncheck “Allow the computer to turn off this device to save power.”
- Click OK and restart.
If your error has been recurring, this step combined with the driver update often makes the fix permanent.
Fix 6: Temporarily Disable Third-Party Antivirus
Some third-party antivirus and firewall programs alter network settings in ways that trigger this error. To test whether yours is the cause, temporarily disable it and check your connection. If the error disappears, the security software is the problem. You can then adjust its settings, or consider relying on the built-in Windows Defender, which provides strong protection without causing default gateway issues. Remember to re-enable your protection after testing.
Fix 7: Disable and Re-enable the Network Adapter
A quick reset of the adapter itself sometimes clears the error.
- Press Windows + R, type
ncpa.cpl, and press Enter. - Right-click your active connection and choose Disable.
- Wait a few seconds, then right-click it again and choose Enable.
Fix 8: Manually Assign an IP Address (Last Resort)
If nothing else works, manually setting your IP and gateway can resolve a stubborn configuration conflict.
- Press Windows + R, type
ncpa.cpl, and press Enter. - Right-click your active network and choose Properties.
- Double-click Internet Protocol Version 4 (TCP/IPv4).
- Select “Use the following IP address” and enter an IP like 192.168.1.50 (the last number can be
anything from 2 to 254 that is not in use), a subnet mask of 255.255.255.0, and your router’s IP
as the default gateway, commonly 192.168.1.1. To confirm your router’s IP, run
ipconfigin Command Prompt and read the Default Gateway line. - Set the DNS servers, for example 8.8.8.8 and 1.1.1.1.
- Click OK and restart.
If this fixes it but you would rather use automatic settings, switch back to “Obtain an IP address automatically” once the underlying issue is resolved.
Conclusion
The “Default gateway is not available” error looks alarming but is rarely serious. Work through the fixes in order: restart your PC and router, run the troubleshooter, then reset the TCP/IP stack, and those three steps clear it for most people. If the error keeps returning, the lasting fix is almost always updating the network driver, turning off the adapter’s power-saving option, and ruling out antivirus interference. None of it requires reinstalling Windows, and you will usually be back online in a few minutes.
Frequently asked questions
What does "Default gateway is not available" mean?
It means your computer cannot reach your router, which is your default gateway, the connection point between your local network and the internet. You see it as no internet access even though your Wi-Fi or Ethernet shows as connected. It is almost always a PC-side software, driver, or settings issue.
What is the fastest fix for this error?
Restart your computer and power-cycle your router, then run the Windows Network troubleshooter. If that does not work, reset the TCP/IP stack with the netsh and ipconfig commands. These first three steps solve the error in most cases within a few minutes.
Why does the error keep coming back after every restart?
A recurring error usually points to a driver problem, a power-saving setting, or antivirus interference. Update or reinstall your network driver, uncheck the power-saving option for the adapter in Device Manager, and test whether your third-party antivirus is the cause. Together these usually make the fix permanent.
Can my antivirus cause this error?
Yes. Some third-party antivirus and firewall programs change network settings in ways that block the gateway. Temporarily disable yours to test. If that resolves it, adjust the software's settings or switch to Windows Defender, which does not cause this problem.
Is this error a problem with my router or my computer?
Almost always your computer. The error reflects a failure on the PC side to reach the router, usually a driver, power-saving, or configuration issue. A quick router restart is worth doing, but if other devices connect fine, the problem is on the affected computer.
Do I need to reinstall Windows to fix this?
No. This error is a software or settings issue that the steps above resolve without reinstalling Windows. Reinstalling would be a drastic and unnecessary step for a problem that is usually fixed in a few minutes.
More from the blog
- 5GHz vs 2.4GHz Wi-Fi: Which Band Should You Use?5GHz is faster but shorter range; 2.4GHz reaches farther through walls. Learn the difference, which Wi-Fi band to use for each device, and how band steering works.
- Can't Connect to Home Wi-Fi? How to Diagnose and Fix ItCan't connect to your home Wi-Fi? Isolate the cause fast: is it one device or all, won't-join or no-internet? Then apply the right fix for phone, laptop, or router.
- How to Find Your MAC Address (Windows, Mac, Phone)Find your MAC address on Windows 11, macOS, iPhone, and Android in a few taps. Includes a router shortcut and how to handle private or randomized addresses.