Wait for the troubleshooter to detect issues and follow the onscreen Instructions to fix problems on your computer.
Go to Settings > Network & Internet > scroll down in the right-pane and click on Network Troubleshooter. The built-in Network Troubleshooter in Windows 10 can be trusted to fix this problem.