@staabm ``socket_create`` does not connect the socket. It only creates the PHP resource. The socket will be connected only for the first ``socket_sendto`` (or when using ``socket_connect`` to force it explicitly)