- May 20, 2016
- 264
- 107
- 136
Hi. 
I`m writing a public server creation srcipt for the self experience and fun)
We creating server, variables are predefined.
I want limit count of servers (on ports). Have a problem.
First server with port=$port creating succesfull, but when creating the second server i`m getting error.
Fatal error: Uncaught exception 'TeamSpeak3_Adapter_ServerQuery_Exception' with message 'unable to bind network port'
How to solv this ?
I`m writing a public server creation srcipt for the self experience and fun)
We creating server, variables are predefined.
I want limit count of servers (on ports). Have a problem.
First server with port=$port creating succesfull, but when creating the second server i`m getting error.
Fatal error: Uncaught exception 'TeamSpeak3_Adapter_ServerQuery_Exception' with message 'unable to bind network port'
How to solv this ?
PHP:
$connect = TeamSpeak3::factory("serverquery://$serveradmin:$pass@$server[0]:$server[1]/");
$new_sid = $connect->serverCreate(array(
"virtualserver_name" => $servername,
"virtualserver_maxclients" => $slots,
"virtualserver_hostmessage" => $hostessage,
"virtualserver_welcomemessage" => $message,
"virtualserver_port" => $minport,
"virtualserver_hostmessage_mode" => $hostmessagemode,
"virtualserver_hostbutton_gfx_url" => $hostbuttongfx,
"virtualserver_hostbutton_url" => $hostbuttonlink,
"virtualserver_hostbutton_tooltip" => $hostbuttontooltip,
"virtualserver_download_quota" => $downloadquota,
"virtualserver_upload_quota" => $uploadquota,
));