This script bellow runs well on my local machine, but on the hosting it's always "timed out":
<?php
ini_set( "display_errors", 0);
$info[] = array('name' => 'SERVER', 'address' => 'IP', 'port' => 'PORT');
$ic = sizeof($info);
$timeout = 3;
while($ic--)
echo (fsockopen("piecefulland.no-ip.org", 25565, $errno, $errstr, $timeout))? '<span style="color: blue; font-weight: bold;">ONLINE</span>' : '<span style="color: darkred; font-weight: bold;">OFFLINE</span>';
?>
Thanks!