Jump to content

Recommended Posts

Posted

Was missing such a script on Maxcheaters so wrote the script. Simple

PHP script for checking if service is running behind a port.

       
<?php
                  $server  = "1.2.3.4";
	  $port   = "2106";
	  $port2   = "7777";
	  $timeout = "1";

	  if ($server and $port and $timeout) {
		$auth=  @fsockopen("$server", $port, $errno, $errstr, $timeout);
		$game=  @fsockopen("$server", $port2, $errno, $errstr, $timeout);
	  }
	  if($auth) {
		echo "<font color=\"#ddd\">Auth is <font color=\"#1AFF00\">Online</font> - ";
	  }
	  else {
		echo "<font color=\"#ddd\"> Auth is <font color=\"#FF0000\">Offline</font> - ";
	  }
	  if($game) {
		echo "L2Server is <font color=\"#1AFF00\">Online</font></font>";
	  }
	  else {
		echo "L2Server is <font color=\"#FF0000\">Offline</font></font>";
	  }
?>

  • Like 1
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..