well i was facing the same situation with quake net but when i added the sign in part it was fixed and i use my bot on quakenet please try it on some other network to see if its just quake or the bot
while($logincount < 10) {
$logincount++;
$data = fgets($socket, 128);
echo nl2br($data);
// Separate all data
$ex = explode(' ', $data);
// Send PONG back to the server
if($ex[0] == "PING"){
fputs($socket, "PONG ".$ex[1]."\n");
}
flush();
}