Forum

Results 1 to 6 of 6
  1. #1
    Join Date
    December 2009
    Location
    Düsseldorf
    Posts
    6

    TS3 and fsockopen

    Hello

    I have an Problem.
    The clear fsockopen command is that here:
    Code:
    $fp = fsockopen("ip","port",$errno,$errstr,2);
        if(!$fp)
            {
                echo 'Offline';
            }else{
                echo'Online';
            }
    @fclose($fp);
    edit:/
    Error:
    Warning: fsockopen() [function.fsockopen]: unable to connect to xxx.x.xxxx.xxx:9987 (Connection refused) in /var/www/index.php on line 7


    Lg.
    Actros
    Last edited by Actros; February 20th, 2012 at 12:41 AM.

  2. #2
    Join Date
    May 2010
    Posts
    6,310
    Hello

    You try to connect to the voice port (on a virtual server), this is the error.
    I guess you want to connect on the Query port and it's the 10011 port (by default)

  3. #3
    Join Date
    December 2009
    Location
    Düsseldorf
    Posts
    6
    no i need the voice ports
    when one of the servers are offline i need to display that.

  4. #4
    Join Date
    May 2010
    Posts
    6,310
    You can't by the voice port.
    This is not how the system works. On the voice port the server wait for client connection.

    You have to use the query command ("on the query port") to check if a vitual server is online are not (serverlist or serverinfo)

    You have some old script on this forum and some librairies/tool on the addons website.

  5. #5
    Join Date
    December 2009
    Location
    Düsseldorf
    Posts
    6
    So must i go over the Server Query port and look there is Serverid 1 2 3 and so on are online?

  6. #6
    Join Date
    May 2010
    Posts
    6,310
    Effectively

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem with fsockopen()?
    By cddude in forum Windows
    Replies: 1
    Last Post: May 31st, 2014, 10:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •