Originally Posted By: Wims
Can't reproduce this either with OP code, it makes sense to me that the connexion is successful since it get a result


The ON SOCKOPEN event will be triggered even if the connection fails. You must check $sockerr to find out.