Php 无法使用GameQ库连接到TeamSpeak3服务器

Php 无法使用GameQ库连接到TeamSpeak3服务器,php,Php,我正在使用GameQ库获取有关我的服务器的数据。除了TeamSpeak3服务器,其他一切都正常工作。我在提供查询端口的数组中设置类型、主机和选项。但是当我尝试连接时,我得到一个错误“服务器没有在指定的时间内响应”。我试图设置更高的超时值,但没有效果 我用于添加服务器的代码: <?php // Include the main class file require '../GameQ.php'; // Define your servers, // see list.php for all

我正在使用GameQ库获取有关我的服务器的数据。除了TeamSpeak3服务器,其他一切都正常工作。我在提供查询端口的数组中设置类型、主机和选项。但是当我尝试连接时,我得到一个错误“服务器没有在指定的时间内响应”。我试图设置更高的超时值,但没有效果

我用于添加服务器的代码:

<?php
// Include the main class file
require '../GameQ.php';

// Define your servers,
// see list.php for all supported games and identifiers.


// Call the class, and add your servers.
$gq = new GameQ();
$gq->addServer(array(
        'type' => 'teamspeak3',
        'host' => '178.217.184.133',
        'options' => array(
                'master_server_port' => 25224,
                ),
));

// You can optionally specify some settings
$gq->setOption('timeout', 10); // Seconds

// You can optionally specify some output filters,
// these will be applied to the results obtained.
$gq->setFilter('normalise');

// Send requests, and parse the data
$results = $gq->requestData();

您可以手动连接到该服务吗?什么意思?如果你的意思是通过官方客户端手动连接到服务器,我可以。假设你帖子中的IP/端口是正确的,从命令行到它的远程登录不起作用:
telnet 178.217.x.x 25224
——它的响应是
telnet:connect to address 178.217.x.x:Connection seeded
。您可以手动连接到该服务吗?您的意思是什么?如果你的意思是通过官方客户端手动连接到服务器,我可以。假设你帖子中的IP/端口正确,那么从命令行到它的远程登录不起作用:
telnet 178.217.x.x 25224
——它的响应是
telnet:connect to address 178.217.x.x:Connection seeded