Hi,
Thank you for writing to Microsoft Community Forums.
I would suggest you to try the steps provided in article: Fix network connection issues in Windows. Also check if the proxy settings are disabled. To check the proxy settings:
- Open Windows Settings (Windows key + I)
- Then click on Network & Internet > Proxy.
- Toggle the option Automatically detect settings to ON.
- Toggle the option Use a proxy server to OFF.
Hope it helps.