I had the same problem too after upgrading to Windows 10, I have tried everything I found on the internet but it did not work.

Maybe Internet access is blocked by firewall. Check your firewall...