Before making any serious amendments to Windows settings, make some basic checks to fix some minor or temporary issues that might be causing this error. If you are connected to a hotspot network of your mobile device, ensure that the internet connection on your phone is turned on and that you have an active internet plan. If you are connected to a router and are sure that your internet plan is active, restart the router and modem to eliminate any temporary glitches.
Modern routers support dual-band—2.4 GHz and 5 GHz. Your device might be incompatible or having trouble connecting to your current network frequency. Try changing from 5 GHz to 2.4 GHz or vice versa, and check if the internet is working. Next, connect other devices to the same network and check if the internet is working on those. If yes, then the problem is device-specific. If you haven’t updated your Windows for a long time, it might be causing compatibility issues, leading to such internet errors. Regularly update your Windows to avoid common problems. If you have turned on a VPN and the issue started just after that, it is advised to turn it off to restore the connection. Lastly, contact your internet service provider and check if there is any issue on their side or an outage around your area.