I run a web-server for my local LAN ..
it runs on Apache+PHP (no MySQL)
now, ..
I have a page where I list (almost) all the HTTP/FTP servers on LAN
The PHP code I use looks like this ->
$fp = fsockopen($ftp[$i],21,$errno,$errstr,0.02);
if(!$fp) { $success=2; }
fclose($fp)...