Try to forcefully instruct the stream open call to use TCP since it seems to be inferring SSL usage when it's just hostname:port.