Notice to all users

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

Results 1 to 2 of 2
  1. #1
    Join Date
    August 2013

    Question TS3 PHP Framework - Connection Refused

    I uploaded the TS3 PHP Framework files to my web host which is on a separate host from my teamspeak servers.

    Name:  ftp.jpg
Views: 1868
Size:  65.9 KB

    Here is the code in test.php, highlighted above, and the settings are for a server hosted by
    PHP Code:

        $username = 'administrator';
        $password = 'AyHT7OJs';
        $server_ip = '';
        $query_port = '10014';
        $server_port = '7414';

        // connect to local server, authenticate and spawn an object for the virtual server on port 9987
        $ts3_VirtualServer = TeamSpeak3::factory("serverquery://".$username.":".$password."@".$server_ip.":".$query_port."/?server_port=".$server_port);

        // build and display HTML treeview using custom image paths (remote icons will be embedded using data URI sheme)
        echo $ts3_VirtualServer->getViewer(new TeamSpeak3_Viewer_Html("images/viewericons/", "images/countryflags/", "data:image"));

    I get the following message on all three of my TS3 servers, which are all on separate hosts:
    HTML Code:
    Fatal error: Uncaught exception 'TeamSpeak3_Transport_Exception' with message 'Connection refused' in libraries/TeamSpeak3/Transport/TCP.php:54 Stack trace: #0 libraries/TeamSpeak3/Transport/TCP.php(108): TeamSpeak3_Transport_TCP->connect() #1 libraries/TeamSpeak3/Adapter/ServerQuery.php(76): TeamSpeak3_Transport_TCP->readLine() #2 libraries/TeamSpeak3/Adapter/Abstract.php(60): TeamSpeak3_Adapter_ServerQuery->syn() #3 libraries/TeamSpeak3/TeamSpeak3.php(320): TeamSpeak3_Adapter_Abstract->__construct(Array) #4 libraries/TeamSpeak3/test.php(9): TeamSpeak3::factory('serverquery://a...') #5 {main} thrown in libraries/TeamSpeak3/Transport/TCP.php on line 54

    What am I doing wrong?
    I have a TS3 server hosted on an unmanaged openVZ VPS, where I really want to be able to use the framework on.
    Don't worry about the query password being shown. That server will only be up for a few days.

  2. #2
    Join Date
    December 2013
    I had the same problem, it's your firewall porbally

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: November 6th, 2014, 03:10 PM
  2. Connection refused
    By AngelZGamer in forum macOS
    Replies: 1
    Last Post: September 3rd, 2013, 10:46 AM
  3. Serverquery: Connection Refused
    By Hileksel in forum Server Support
    Replies: 2
    Last Post: February 8th, 2011, 08:41 AM

Tags for this Thread

Posting Permissions

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