Austinb / GameQ

A PHP Gameserver Status Query Library
https://austinb.github.io/GameQ/
GNU Lesser General Public License v3.0
403 stars 136 forks source link

Ts3 doesn't work #386

Closed sasanyi closed 7 years ago

sasanyi commented 7 years ago

Hi, For me teamspeak3 doent work, but I dont know why. I make a full base ts3 server on my debian system. I try get datas with GameQV3, but it doesnt work:

My code:

 $GameQ = new \GameQ\GameQ();
            $GameQ->addServer([
                'type' => $this->service_data['name'],
                'host' => $this->srv_data['ip'].':'.$this->srv_data['port'],
                'options' => ['query_port' => 10011,],
            ]);
            $results = $GameQ->process();

And the result:

Array
(
    [37.17.172.37:9987] => Array
        (
            [gq_address] => 37.17.172.37
            [gq_dedicated] => 
            [gq_hostname] => 
            [gq_joinlink] => ts3server://37.17.172.37?port=9987
            [gq_maxplayers] => 
            [gq_name] => Teamspeak 3
            [gq_numplayers] => 
            [gq_online] => 
            [gq_password] => 
            [gq_port_client] => 9987
            [gq_port_query] => 10011
            [gq_protocol] => teamspeak3
            [gq_transport] => tcp
            [gq_type] => teamspeak3
            [players] => Array
                (
                )

            [teams] => Array
                (
                )

        )

)
sifex commented 7 years ago

Have you had the GameQ server whitelisted on Teamspeak?

sasanyi commented 7 years ago

Yes I try it

Austinb commented 7 years ago

Do you have any other information on this issue? Assuming something has not changed in the response from the TS3 servers it seems to be a connection or network issue. It is possible the network is dropping your query. Please reopen this issue if you have more information.