Forum

Results 1 to 3 of 3
  1. #1
    Join Date
    August 2016
    Posts
    2

    How to get the IP (Country) of an joining Client

    Hi everybody,

    I am writing a plugin for a TS3 Server in Java (JTS3).
    And I'm trying to get the IP of every client to prevent clients from joining if they are living not in Germany, Austria, Italy and Switzerland.
    How do I get the IPs?

    Thanks for every helpful reply
    Arzaror

  2. #2
    Join Date
    June 2008
    Posts
    18,151
    Following is from Google, because I have no knowledge about that topic.


    Maybe this helps you? Try to get the String from getCountry()

    Source from:
    http://theholywaffle.github.io/TeamS...er/Client.html
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  3. #3
    Join Date
    December 2009
    Location
    Germany
    Posts
    2,354
    Quote Originally Posted by Arzaror View Post
    I am writing a plugin for a TS3 Server in Java (JTS3).
    And I'm trying to get the IP of every client to prevent clients from joining if they are living not in Germany, Austria, Italy and Switzerland.
    How do I get the IPs?
    You don't need another API, if you try to write a plugin for the JTS3ServerMod. The JTS3ServerMod already has all information you need.

    Look at the handleTS3Events method in the AutoKickTimer example, check for eventType equals notifycliententerview and get the client_country from the eventInfo.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. client country and ipaddres
    By #H_43 in forum Server Support
    Replies: 5
    Last Post: August 3rd, 2015, 07:53 AM
  2. [Suggestion] Resolve client IP to country flag
    By Trinitrotoluene in forum Suggestions and Feedback
    Replies: 0
    Last Post: February 14th, 2010, 09:58 AM

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
  •