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.