Announcement

Collapse
No announcement yet.

Server status

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Server status

    Hi, I'm new in this stuff... so i need help.
    Anybody know how to write script in javascript or php to give me an information server ut3 is online or offline. Only this one information for one IP.

    #2
    http://forums.epicgames.com/showthread.php?t=595242

    http://forums.epicgames.com/showthread.php?t=606537

    Comment


      #3
      nvm
      i solve this different way...
      Code:
      <?php
      $live = "<font color='green'><b>[ONLine]</b></font>";
      $dead = "<font color='red'><b>[OFFLine]</b></font>";
      
      $link = $_GET['link'].":";
      $s_link = str_replace("::", ":", $link);
      list($addr,$port)= explode (':',"$s_link");
      if (empty($port)){
      	$port = 80;
      }
      
      $churl = @fsockopen(server($addr), $port, $errno, $errstr, 20);
                   if (!$churl){
      			 //echo $errstr;
                     echo"<center><b>$addr</b> $dead</center>";
                      }
                   else {
                   if ($port==80)
                   echo"<center><b>$addr</b> $live</center>";
                   else
                   echo"<center><b>$addr:</b>$port $live</center>";
                   }
      function server($addr){
               if(strstr($addr,"/")){$addr = substr($addr, 0, strpos($addr, "/"));}
               return $addr;
      }
      ?>
      if we use webadmin this work great...

      Comment


        #4
        Originally posted by 4rch0n View Post
        nvm
        i solve this different way...

        if we use webadmin this work great...
        It's better to query the server rather than (pinging) the status of the WebAdmin... The WebAdmin can be active even though the UT3 Server is having issues (see: http://forums.epicgames.com/showthread.php?t=605745)

        If you just want a quick and dirrty solution, then modify this code and return what you need: http://www.penetrate.nl/ut3serverquery.phps

        Comment


          #5
          I find this script few days ago and topis from above too, but this is not work for me...(i have open ports on router(DMZ), people can play but, server query don't reply)

          Comment

          Working...
          X