Results 1 to 5 of 5
-
23-11-2010, 18:55 #1
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 38
Problems getting the current Server IP
Hello,
I am trying to get the current server IP with the following code from the SDK but it only works on some servers.
ts3Functions.requestServerVariables(serverConnecti onHandlerID);
ts3Functions.getServerVariableAsString(serverConne ctionHandlerID, VIRTUALSERVER_IP, &ip);
Getting the current Serverport works on all servers but not the IP :/ am I using the wrong functions? Would be nice if someone could tell me how to retrieve the server IP.
thanks
-
26-11-2010, 14:35 #2
-= TeamSpeak Fanatic =-
- Join Date
- Sep 2005
- Location
- Germany / Dortmund
- Posts
- 1,282
Tested it with the lua plugin (didn't had the time to test it with a standalone plugin) and can confirm that.
-
30-11-2010, 02:43 #3
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 38
There is a Bug in the Function that tells you the IP Adress of your current Server! In most cases it doesn't give you any IP adress at all. I really need this function to be working. Please could you try to fix it?
-
02-12-2010, 10:03 #4
-= TeamSpeak Team =-
- Join Date
- Jul 2002
- Location
- Germany
- Posts
- 2,836
Hi,
the VIRTUALSERVER_IP is a server property which holds which IP the server is bound to listen on. Most servers don't bind to any specific IP, so this property is empty. Only a server that is configured to bind to a certain IP address has this value set.
If you just want to know which IP the client used to connect to the server, use getConnectionVariableAsString with a flag of CONNECTION_SERVER_IP (6)You think my answer is stupid ? Read This:
http://www.catb.org/~esr/faqs/smart-...ons.html#intro
In a world without fences and walls - who needs windows and gates ?
-
03-12-2010, 15:51 #5
-= TeamSpeak Fanatic =-
- Join Date
- Sep 2005
- Location
- Germany / Dortmund
- Posts
- 1,282
=> Moved back to Plugins (no bug)
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Server Admin. / "Token" .. delineation. (?)
By richard583 in forum Mac OS XReplies: 0Last Post: 17-04-2010, 14:28 -
How to Install TS & MySQL 4 Properly
By DOMINATION in forum [TeamSpeak 2] Server SupportReplies: 242Last Post: 15-09-2009, 01:24 -
Server Issue's When PC Reboots
By gokub27 in forum [TeamSpeak 2] Client SupportReplies: 3Last Post: 14-09-2006, 21:32 -
Friends can't connect
By shadow127 in forum [TeamSpeak 2] Server SupportReplies: 86Last Post: 01-01-2006, 20:45 -
I can find my IP
By Barmace in forum [TeamSpeak 2] Server SupportReplies: 16Last Post: 21-05-2005, 12:01


Reply With Quote