Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 3 of 3
  1. #1
    Join Date
    March 2015
    Posts
    2

    TeamSpeak3 PHP QueryError: 110 Connection timed out

    Hi!

    I have a problem with a php addon for my TS server host on my ubutu server 14.04. I want to show if the server is up/down and the number of online user. I actualy have the script and it work on my local server, but it didn't work on my website who is actualy host by a hosting compagny.

    When I put the script on my website, it show "QueryError: 110 Connection timed out".

    -Port 9987, 30033 and 10011 are open on my D-Link router.
    -The IP address of my website is on the whitelist

    The scrypt:

    PHP Code:
    <?php
    require_once("./libraries/TeamSpeak3/TeamSpeak3.php");
    TeamSpeak3::init();

    header('Content-Type: text/html; charset=utf8');

    $status "offline";
    $count 0;
    $max 0;

    try {
        
    $ts3 TeamSpeak3::factory("serverquery://<QUERY_USER>:<PASSWORD>@<SERVER_NAME_OR_IP>:<QUERY_PORT>/?server_port=<TS3_VOICE_PORT>&use_offline_as_virtual=1&no_query_clients=1");
        
    $status $ts3->getProperty("virtualserver_status");
        
    $count $ts3->getProperty("virtualserver_clientsonline") - $ts3->getProperty("virtualserver_queryclientsonline");
        
    $max $ts3->getProperty("virtualserver_maxclients");
    }
    catch (
    Exception $e) {
        echo 
    '<div style="background-color:red; color:white; display:block; font-weight:bold;">QueryError: ' $e->getCode() . ' ' $e->getMessage() . '</div>';
    }
    echo 
    '<span class="ts3status">TS3 Server Status: ' $status '</span><br/><span class="ts3_clientcount">Clients online: ' $count '/' $max '</span>';

    ?>
    (Of curse, I filled <> area)

    Thanks for help!

    Addon link:
    http://addons.teamspeak.com/director...Framework.html

    Sorry if my writing is bad...

  2. #2
    Join Date
    December 2012
    Location
    Bavaria, DE
    Posts
    120
    use
    PHP Code:
     <?php
    require_once("./libraries/TeamSpeak3/TeamSpeak3.php");
    TeamSpeak3::init();

    header('Content-Type: text/html; charset=utf8');

    $status "offline";
    $count 0;
    $max 0;

    try {
        
    $ts3 TeamSpeak3::factory("serverquery://<QUERY_USER>:<PASSWORD>@<SERVER_NAME_OR_IP>:<QUERY_PORT>/?server_port=<TS3_VOICE_PORT>&use_offline_as_virtual=1&no_query_clients");
        
    $status $ts3->getProperty("virtualserver_status");
        
    $count $ts3->getProperty("virtualserver_clientsonline") - $ts3->getProperty("virtualserver_queryclientsonline");
        
    $max $ts3->getProperty("virtualserver_maxclients");
    }
    catch (
    Exception $e) {
        echo 
    '<div style="background-color:red; color:white; display:block; font-weight:bold;">QueryError: ' $e->getCode() . ' ' $e->getMessage() . '</div>';
    }
    echo 
    '<span class="ts3status">TS3 Server Status: ' $status '</span><br/><span class="ts3_clientcount">Clients online: ' $count '/' $max '</span>';

    ?>
    dont use
    Code:
    no_query_clients=1
    it dont gone

  3. #3
    Join Date
    March 2015
    Posts
    2
    It doesn't help.

    Still got the QueryError: 110 Connection timed out

    I guess it's a probleme with the connection between the two servers...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: June 13th, 2013, 09:28 AM

Posting Permissions

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