This can occur mainly due to two issues
Only is your proxy connection and other is your antivirus or thirdparty firewalls
I'm sure you could have checked your unchecked your proxy settings
Now uninstall your security softwares and see if that was blocking your connection
You didnot say when did this issue started ?