Since you mention SSL: does connectToHost() fail or connectToHostEncrypted()?

Cheers,
_