Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 2 of 2

Thread: Get server ip

  1. #1
    Join Date
    December 2016
    Posts
    10

    Get server ip

    As the title says. Is there some way to get a server's IP (and Port) of an open connection? I found this function
    Code:
    unsigned int (*getServerConnectInfo)(uint64 scHandlerID, char* host, unsigned short* port, char* password, size_t maxLen);
    but it returns ERROR_undefined everytime I try use it so it'd be nice to have a short explaination on how to use it. Oh, is this even the right function?

  2. #2
    Join Date
    September 2012
    Posts
    6,079
    Code:
    		char pw[INFODATA_BUFSIZE] ={ '\0' };
    		char cHost[INFODATA_BUFSIZE] = { '\0' };
    		unsigned short port = 0;
    		auto err = ERROR_not_implemented;
    		if ((err = ts3.getServerConnectInfo(serverConnectionHandlerID, cHost, &port, pw, INFODATA_BUFSIZE)) == ERROR_ok) {
    			// do something with the information
    		}
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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