The Windows Network troubleshooter reports “The default gateway is not available” when the PC cannot reach the router that connects it to the internet. The default gateway is the router's address on the local network, so this error means the path from the PC to the router is broken.
netsh winsock reset and netsh int ip reset, then restart.ncpa.cpl, right-click the Wi-Fi adapter, choose Disable, wait a few seconds, then choose Enable.ipconfig /release then ipconfig /renew and test again.If the error returns every time the PC wakes from sleep, the power saving setting is the likely cause, so make sure it stays off and check the power plan. If it happens on every network, the adapter itself may be failing, so test with a USB Wi-Fi adapter.
What is a default gateway? It is the router's address on your local network. Devices send internet traffic to the gateway, and the router forwards it on. If the PC cannot reach the gateway, nothing beyond the local network is reachable.
Why does the troubleshooter fix it and then it comes back? The troubleshooter resets the adapter, which clears the fault temporarily. If the cause is a bad driver or a power saving setting, the fault returns until that cause is fixed.