Open Settings using Win + I
Go to Network & Internet > Proxy
Check if a script is used or there is a manual proxy server setup
If it's automatic, the proxy may not be working as expected. You also need to check if there is a proxy software that is disabled. if yes, then you can choose to enable it.