Codice PHP:
<?
ignore_user_abort
(true);
set_time_limit(0);
$host '87.15.***.***';
$port 3453;
$fp fsockopen($host$port$errno$errstr120);
if (!
$fp) {
   echo 
"ERROR\n";
} else {
   
$out "TEST\r\n";

   
fwrite($fp$out);
   while (!
feof($fp)) {
       echo 
fgets($fp128);
   }
}
?>

ho provato con questo, ma non funziona, ho testato se la porta fosse realmente aperta con un servizio online ed è in ascolto perfettamente