$connect = fsockopen("udp://".$ip, $puerto, $errno, $errstr, 10);stream_set_timeout ( $connect, 10, 0 );