An attempt was made to access a socket in a way forbidden by its access permissions

If you're getting the same error in Windows 8 development, it could be that you haven't enabled access over Private Networks in your Package.appxmanifest file:

Highlighting the Private Networks (Client & Server) option


Solved... my bad - my firewall was "silently" blocking ISS worker process from connecting on port 443... I hope that at least I save somebody from the same mistake :)