Results 1 to 6 of 6
Thread: TS3 and fsockopen
-
19-02-2012, 13:37 #1
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Düsseldorf
- Posts
- 7
TS3 and fsockopen
Hello
I have an Problem.
The clear fsockopen command is that here:
edit:/Code:$fp = fsockopen("ip","port",$errno,$errstr,2); if(!$fp) { echo 'Offline'; }else{ echo'Online'; } @fclose($fp);
Error:
Warning: fsockopen() [function.fsockopen]: unable to connect to xxx.x.xxxx.xxx:9987 (Connection refused) in /var/www/index.php on line 7
Lg.
ActrosLast edited by Actros; 19-02-2012 at 23:41.
-
20-02-2012, 06:42 #2
-= TeamSpeak Guru =-
- Join Date
- May 2010
- Posts
- 6,372
Hello
You try to connect to the voice port (on a virtual server), this is the error.
I guess you want to connect on the Query port and it's the 10011 port (by default)
-
20-02-2012, 11:12 #3
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Düsseldorf
- Posts
- 7
no i need the voice ports
when one of the servers are offline i need to display that.
-
20-02-2012, 11:17 #4
-= TeamSpeak Guru =-
- Join Date
- May 2010
- Posts
- 6,372
You can't by the voice port.
This is not how the system works. On the voice port the server wait for client connection.
You have to use the query command ("on the query port") to check if a vitual server is online are not (serverlist or serverinfo)
You have some old script on this forum and some librairies/tool on the addons website.
-
20-02-2012, 11:21 #5
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Düsseldorf
- Posts
- 7
So must i go over the Server Query port and look there is Serverid 1 2 3 and so on are online?
-
20-02-2012, 11:25 #6
-= TeamSpeak Guru =-
- Join Date
- May 2010
- Posts
- 6,372
Effectively
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)


Reply With Quote