iDentity1337
Member
- Oct 4, 2015
- 1
- 3
- 35
Hello, and first of all, Happy Christmas holidays to everyone since i don't know will I be around these days.
Now, since I'm in the middle of connecting milion things at once through PHP, and one of them is TeamSpeak, I was wondering is it possible to get client's IP Address, like we have for names:
Thanks in advance.
EDIT: I figured it out. In case someone wants to figure out the same thing, here's the code:
Now, since I'm in the middle of connecting milion things at once through PHP, and one of them is TeamSpeak, I was wondering is it possible to get client's IP Address, like we have for names:
Code:
clientGetByName('Test');
EDIT: I figured it out. In case someone wants to figure out the same thing, here's the code:
Code:
foreach($ts3_VirtualServer->clientList() as $client)
{
if($client["client_type"]) continue;
$clientInfo = $client->getInfo();
if($clientInfo['connection_client_ip'] == 'DesiredIPthatMatches')
$client->poke("HEYY");
}
Last edited: