Getting Hostname

Discussion in 'Plugin Development' started by puppy3276, Jan 25, 2013.

Thread Status:
Not open for further replies.
  1. Offline


    How would I make a plugin that would get the hostname a player logged in with (, or and print to the console.

    Player Logs in using
    Server Owner would see "Player Logged in with

  2. Offline


    You can't either way you do it, its a DNS thing(I think) and your redirecting it to your IP, so the server won't be able to tell What IP they connect with
  3. Offline


    this is not true, minecraft is sending the name what it uses to connect to the server (at least, the protecall says it)
  4. Offline


    Minecraft sends it in a packet. A non-mc example that it is possible to get the hostname is Apache Virtual Hosts.
Thread Status:
Not open for further replies.

Share This Page