Also ich krieg nur den Nicknamen angezeigt aber nicht die IP dahinter...wisst ihr wie ich es eig. machen soll?
PHP
#Include ts3admin.class.php
require("../src/ts3admin.class.php");
#build a new ts3admin object
$tsAdmin = new ts3admin($ts3_ip, $ts3_queryport);
if($tsAdmin->getElement('success', $tsAdmin->connect())) {
#login as serveradmin
$tsAdmin->login($ts3_user, $ts3_pass);
#select teamspeakserver
$tsAdmin->selectServer($ts3_port);
#get clientlist
$clients = $tsAdmin->clientList();
#print client count
echo count($clients['data']) . ' clients on selected server<br><br>';
foreach($clients['data'] as $client) {
echo $client['client_nickname'] . ' IP: '. $client['connection_client_ip'] .'<br>';
}
}else{
echo 'Connection could not be established.';
}
Alles anzeigen