For me this was caused by malware bytes. When I unchecked the protection box for "malicious websites" I was able to connect again.