Using the Troubleshooter
On Windows 10, right-click on the network icon in your System Tray and choose Troubleshoot Problems
OR
To access the network troubleshooter, visit Settings > Network & internet > Status. Select Network troubleshooter and follow the steps to see if Windows can rectify the problem. On Windows 7, you’ll find this same tool at Start > Control Panel > Troubleshooting > Network and internet > Network Connections.
The torubleshooter will attempt to identify and fix any problems with network connectivity. If it fails to do so, please send this information to the support technician or proceed to next steps.
Check the Network Adapter
On Windows 10, right-click on the network icon in your System Tray and choose Open Network & internet settings. Click the Change adapter options entry and then double-click the connection you’re using.
From here, click the Properties button. Find Internet Protocol Version 4 in the list and double-click that. Here, make sure you have Obtain an IP address automatically and Obtain DNS server address automatically both selected.
Setting an IP address manually is for advanced users; chances are if you have something entered here, it’s invalid.Clear it and choose the automatic options.
Using Commands
Search Command Prompt. Right click and choose Run as Administrator.
(Press Enter after each line)To reset some of the files Windows keep to access the internet, use these two commands:
netsh winsock reset
netsh int ip reset
If that doesn’t work, try releasing your computer’s IP address and obtaining a fresh one with these two commands one at a time:
ipconfig /release
ipconfig /renew
Finally, refresh your computer’s DNS settings with this command:
ipconfig /flushdns
It doesn’t hurt to reboot your PC again at this point. If you still can’t get online, there are a few more steps to try.