I am trying to get this small script working that I managed to put together. It works...with tcp..but whenever I try to use it with udp(which is what I want to check) the script will always show the server is online, even if its not.. My server will always show it online: http://einherjers.dk/test/status.php That port this script use is not open.. Does anyone know what I am doing wrong? [code] <?php $host = "udp://einherjers.dk"; $port = "886"; $output = @fsockopen($host, $port, $errno, $errstr, 2); if (!$output) { echo "<img src='http://einherjers.dk/account3/images/offline.gif' alt='Offline' />"; } else { echo"<img src='http://einherjers.dk/account3/images/online.gif' alt='Online' />"; @fclose($output);} ?> [/code]