Okay, I have found the reason for this issue: my antivirus software has a web URL check feature. If this is enabled, it will block the connection attempt for whatever reason. I really have no clue what it doesn't like about the connecton but when I turn this feature off, a connection is made instantly.