Getting Hostname

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

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

    puppy3276

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

    Example:
    Player Logs in using mc.amazingserver.com
    Server Owner would see "Player Logged in with mc.amazingserver.com

    Thanks
     
  2. Offline

    xXSniperzzXx_SD

    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

    ferrybig

    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

    puppy3276

    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