Server Tracker Monitor

Moderators: sung, Pr0d1gY, zulu, admin

Server Tracker Monitor

Postby admin » Tue Dec 20, 2022 5:38 am

Here I leave some important information about how handler the query ports to create and show up the server monitor to put into some website

Little script called LGSL By Richard Perry (that worked before, but not now "I duno why!" )

The FarCry game use a protocol called: ASE (All Seeing Eye), to do the query requests for the servers game.
Detects the All-Seeing Eye service. Provided by some game servers for querying the server's status.
The All-Seeing Eye service can listen on a UDP port separate from the main game server port (usually game port + 123). On receiving a packet with the payload "s", it replies with various game server status info... Like: the server name, game type, map name, current number of players, maximum number of players, player information, and various other information.

Here is some reference links: ... ry-Library

RCON protocol ... N_Protocol

I've wrote a little script in PHP as an example to show how it works "Allsee_eye.PHP"
Code: Select all
$sv_IP = "";              // Server public IP
$sv_cPort  = "49001";                            // Server Port
$sv_qPort  = "49124"; // (49001 + 123)  // Server Query Port

$fp = @fsockopen("udp://{$sv_IP}", $sv_qPort, $errno, $errstr, 1);
echo "------------------------------------------------<br>";
if ($fp) {
   // Open the steam
    stream_set_timeout($fp, 0, 500000);
    stream_set_blocking($fp, TRUE);
   echo "Command...<br>";
   fwrite($fp, "s"); // ASE ( ALL SEEING EYE ) PROTOCOL TO FARCRY... It's send the "s" for the server query port to request the server information data!
   $buffer = fread($fp, 4096);
   echo "<br>";
   if ($buffer) {
       $buffer = substr($buffer, 4); // REMOVE HEADER
       echo var_dump($buffer);
      echo "Nothing<br>";
   while (!feof($fp)) {
      echo fgets($fp, 128);
   echo "ERROR<br>";
echo "------------------------------------------------<br>";

It's a Plugin that was made to a CMS called e107

New LGSL version here... (v6.2)
User avatar
Site Admin
Site Admin
Posts: 77
Joined: Wed Apr 04, 2018 4:44 am
Medals: 4
Donator (1) Staff member (1) US Marines Service Medal (1) PDW Medal (1)
Has thanked: 39 times
Been thanked: 7 times

Return to DOCS

Who is online

Users browsing this forum: No registered users and 0 guests