yo,
To retrieve all the servers on the server list, it uses the TCP protocol.
http://38.103.164.119/servers.php(to query an individual server uses UDP)
the following should connect to the site and echo all the servers (including the headers received from the server)
(alot easier to read in the source as the servers are seperated by \n's)
<?php
$host = "38.103.164.119";
$port = 80;
$sock = fsockopen($host, $port, $errorid, $error, 30);
if (!$sock) die("Could not open socket to mast server list, errorid='$errorid' error='$error'");
$packet = "GET /servers.php HTTP/1.1\r\n";
$packet .= "Content-Type: text/html\r\n";
$packet .= "Host: 38.103.164.119\r\n";
$packet .= "Accept: text/html, */*\r\n";
$packet .= "User-Agent: Mozilla/3.0 (compatible; VC:MP v0.3z BETA)\r\n";
$packet .= "\r\n";
fwrite($sock, $packet);
while (!feof($sock)) {
echo fgets($sock, 128);
}
fclose($sock);
?>