When troubleshooting a network problem, we always recommend starting with the Network Troubleshooter. You might get lucky and the troubleshooter will figure out what's wrong and fix it. This is how you do it:
- To open Settings, press Windows Key + I.
- Select Network and Internet from the drop-down menu.
- To run the troubleshooter, go to 'Network troubleshooter.'
- Wait for it to come to a conclusion.
Solution 2: Disable your antivirus software.
In some circumstances, the third-party antivirus software you're running on your computer is to blame. Antivirus software is known for keeping your PC secure, but it can also cause problems. As a result, turn off your antivirus and see if it helps.