Community Forums Today's Posts     Member List     Archive    
Results 1 to 5 of 5
  1. #1
    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

  2. #2
    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.

  3. #3
    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?

  4. #4
    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 ?

  5. #5
    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

  1. Server Admin. / "Token" .. delineation. (?)
    By richard583 in forum Mac OS X
    Replies: 0
    Last Post: 17-04-2010, 14:28
  2. How to Install TS & MySQL 4 Properly
    By DOMINATION in forum [TeamSpeak 2] Server Support
    Replies: 242
    Last Post: 15-09-2009, 01:24
  3. Server Issue's When PC Reboots
    By gokub27 in forum [TeamSpeak 2] Client Support
    Replies: 3
    Last Post: 14-09-2006, 21:32
  4. Friends can't connect
    By shadow127 in forum [TeamSpeak 2] Server Support
    Replies: 86
    Last Post: 01-01-2006, 20:45
  5. I can find my IP
    By Barmace in forum [TeamSpeak 2] Server Support
    Replies: 16
    Last Post: 21-05-2005, 12:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •