The Network troubleshooter can help diagnose and fix common connection problems. Using this troubleshooter, then running some networking commands afterwards if needed, can help get you connected.
To run the Network troubleshooter
In the search box on the taskbar, type Network troubleshooter, and then select Identify and repair network problems from the list of results.
Follow the steps in the troubleshooter and see if that fixes the problem.
If that doesn’t fix your connection problem, try these things:
Reset the TCP/IP stack
Release the IP address
Renew the IP address
Flush and reset the DNS client resolver cache
To run these networking commands in a command prompt window
In the search box on the taskbar, type Command prompt, press and hold (or right-click) Command prompt, and then select Run as administrator > Yes.
At the command prompt, run the following commands in the listed order, and then check to see if that fixes your connection problem:
Type netsh winsock reset and press Enter.
Type netsh int ip reset and press Enter.
Type ipconfig /release and press Enter.
Type ipconfig /renew and press Enter.
Type ipconfig /flushdns and press Enter.