1. If you have a problem and need help, create a new thread with a title that briefly describes the problem.
    Do not use titles like 'Help!' or 'I have a problem!'
    Dismiss Notice
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

UDP sockets / Error in Status server www

Discussion in 'Server Help' started by thekuti, Dec 28, 2011.

  1. thekuti

    thekuti Catapult Fodder

    Messages:
    14
    Hicreationpageserver andencounteredasmall problemon...I have a scripton port50301butsaysoffline|

    E3Studio [Gates Of Hell]<br><?php
    $ip = "79.124.116.231"; // Web Server
    $port = 50301; // Server Port
    $output = @fsockopen($ip, $port, $errno, $errstr, 2);
    if (!$output)
    {
    echo "Status: <FONT COLOR=#DD0000>Offline</FONT>­ ";

    } else {
    echo "Status: <FONT COLOR=#00DD00>Online</FONT>­ ";
    @fclose($output);
    }
    ?> I have unblocked ports
     
  2. trelawney

    trelawney KAG Guard Tester

    Messages:
    771
    I've had the same issue, and I kinda gave up, no way of figuring out which particular packet to send to the server to get a response.

    ref: http://php.net/manual/en/function.fsockopen.php
    p.s. renamed thread from "Starus server www" to current title.