The Default gateway is not available error affects your Internet connectivity and causes it to disconnect abruptly. This error can affect individual apps or happen to your entire computer.

The error indicates that the system cannot find the default gateway, often your home router, resulting in disconnection. To fix this, try to reset the TCP/IP stack, check your firewall, disable energy-saving features for your network adapter, or update the necessary drivers.

So, we'll go through all the possible solutions below to help you fix the default gateway is not available error on Windows and get you back online.

1. Run the Network Adapter Troubleshooter

The built-in Network Adapter troubleshooter can help you find and fix common network issues. It checks for the most common contributing factors, such as malfunctioning network drivers and incorrect network configuration. If it can resolve the issue without your intervention, it will do so. But if it needs your help, it will recommend resolutions accordingly.

To run the Network Adapter troubleshooter:

  1. Press Win + I to open Settings.
  2. Next, in the System tab, scroll down and click on Troubleshoot.
    Windows 11 troubleshooter
  3. Click on Other Troubleshooters.
  4. Scroll down and click on the Run button for Network Adapter.
    Windows 11 troubleshooter network adapter run
  5. The Network Adapter troubleshooter will scan the system for issues. Select the affected network adapter if prompted and click Yes.
    Windows 11 troubleshooter all network adapter
  6. Next, the troubleshooter will look for any issues. Follow-on screen instructions and check if the error is resolved.

2. Reset the TCP/IP Stack

reset internet connection windows 11 flush dns

You can fix the default gateway is not available error by performing a TCP/IP stack reset. This is useful if the wireless adapter sees the network but fails to accept the TCP/IP address. Here's how to do it.

  1. Press the Windows key and type cmd to open the command prompt.
  2. Right-click on Command Prompt and select Run as administrator. Click Yes if prompted by UAC.
  3. Next, type the following command in the given order one by one and press Enter to execute:
            netsh winsock reset
    netsh int ip reset
    ipconfig /release
    ipconfig /renew
    ipconfig /flushdns
  4. If all the commands are executed successfully, restart your PC and check for any improvements.

3. Disable and Enable the Network Adapters

Another way to fix this error is to disable and re-enable your network adapter. This may help you fix any temporary glitches with the network adapter and resolve the Internet disconnection issue.

To enable and disable your network adapter:

  1. Press Win + R to open the Run dialog.
  2. Type control and click OK to open Control Panel.
  3. Next, open the Network and Internet option.
  4. Click on Network and Sharing Center.
    network and sharing center control panel
  5. In the left pane, click on Change adapter settings.
    change adapter settings network and sharing center control panel
  6. Right-click on your network adapter and select Disable. Once disabled, the network adapter will be grayed out.
    disable network adapter windows 11
  7. Right-click on the grayed-out network adapter and choose Enabled.

4. Change Advanced Power Settings for the Wireless Network Adapter.

If you're using a battery saver power plan, your computer might be putting your wireless network adapter to sleep to save on power. To avoid the frequent disconnection issue, you need to change and set your network adapter to use the maximum performance power plan.

Change the advanced power settings for the network device using Power Options. Here's how:

  1. Press Win + R to open Run.
  2. Type control and click OK to open Control Panel.
  3. Next, open the System and Security option and click on Power Options.
    power options control panel
  4. Here, click on Change plan settings for your currently active power plan.
    change plan settings control panel
  5. Next, click on Change advanced power settings.
    change advanced power settings control panel
  6. In the Power Options dialog, expand the Wireless Adapter Settings section.
  7. Next, click to expand the Power Saving Mode section.
  8. Click the On Battery option and select Maximum Performance.
    wireless network adapter power option settings maximum performance
  9. Next, click the Plugged in option and select Maximum Performance from the drop-down.
  10. Click on Apply and OK to save the changes.
  11. Restart your PC and check for any improvements.

5. Update Your Network Adapter Drivers

device manager update driver

If the issue occurs after a Windows update, your computer might be missing the latest updates for the network adapter driver. The new drivers may sometimes be unavailable via the Device Manager and require you to manually download and install them from your computer manufacturer's website.

Follow these steps to update your network adapter drivers. To update network driver using Device Manager:

  1. Press the Win + X key to open the WinX menu.
  2. Click on Device Manager to open the app.
  3. In Device Manager, expand the Network Adapter section.
  4. Right-click on your network adapter and select Update driver.
  5. Select Search automatically for drivers. If a new driver is found, follow the on-screen instructions to download and install the driver.

That said, Device Manager sometimes doesn't have the latest drivers available. So, your best is to check your computer manufacturer's website and download all the latest drivers available for your computer.

Alternatively, almost all the major computer OEMs ship the computers with their proprietary system management utility. For example, Lenovo offers Vantage and HP offers its Support Assistant utility. You can use these tools to check for pending updates and install them without the need to visit the website.

6. Perform a Driver Roll Back

Windows features a driver rollback feature in Device Manager. You can use it to roll back a driver update and undo any changes that may have occurred.

To perform a network driver rollback:

  1. Open Device Manager.
  2. Expand the Network adapters section.
  3. Right-click on the network adapter and select Properties.
    device manager network driver properties
  4. Next, open the Driver tab in the Properties dialog.
    device manager network driver roll back driver
  5. Click on the Roll Back Driver button. Click Roll back to confirm the action.

Once done, restart your PC and check for any improvements. If the issue persists, open the network adapter properties and try to perform a rollback again. If the option is grayed out, you don't have any older drivers to install.

7. Change the Network Adapter's Power Management Option

network adapter power management options

Your Windows computer can turn off some devices to save power when idle. However, this can result in frequent service disconnection. To fix the problem, disable the Allow the computer to turn off this device to save power option in Device Manager.

To disable the network adapter power management option :

  1. Press Win + R to open Run.
  2. Type devmgmt.msc and click OK to open Device Manager.
  3. Next, expand the Network Adapters section.
  4. Right-click on your network device and select Properties.
  5. Open the Power Management tab in the Properties dialog.
  6. Uncheck the Allow the computer to turn off this device to save power option.
  7. Click OK to save the changes.
  8. Restart your PC and check for any improvements.

8. Temporarily Disable Your Antivirus and Firewall

Try to disable your antivirus to see if that helps fix the error. Antivirus with Internet security features can interfere with your network connection resulting in the default gateway is not available error.

Some antivirus apps allow you to disable the protection temporarily to troubleshoot issues. Disable the antivirus and check if the error is resolved. If yes, turn off Internet security features on your antivirus to determine what's causing the error.

9. Hard Reset Your Router to Its Factory Defaults

While resetting your router can help you fix some internet issues, sometimes, a hard reset is needed to return it to its factory default and resolve any problems with the router configuration. You can factory reset your router using the dedicated reset button or from your router's Web interface.

To reset your router to factory default:

  1. Make sure the router is powered on.
  2. Locate the WSP/Reset button on the front or back of your router. Press and hold the button for at least 10 seconds to perform a hard reset. You can use a paper clip or similar objects to access the Reset button.
  3. Release the button after 10 seconds as the LEDs start to flash slowly. Wait for the router to reboot and reset the settings to its factory default.
  4. Reconfigure your router and check if the default gateway is not available error is resolved.

Fix the Default Gateway Is Not Available Error

Most of the time, internet issues can be resolved by running the Network Adapter troubleshooter. If the problem persists, installing pending driver updates and resetting the network drivers and your router can help fix the error on your Windows computer.