Get Server IP

Discussion in 'Plugin Development' started by lbjdaking23, Aug 18, 2011.

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

    lbjdaking23

    Im trying to get the server ip for a plugin.
    I have tried
    Server server = Bukkit.getServer();
    server.getIp()
    but comes up blank.
    Can anyone help me?
     
  2. Offline

    bergerkiller

  3. Offline

    lbjdaking23

    Wouldn't that give the player ip not server ip
     
  4. Offline

    bergerkiller

    If no IP is filled in by the server admin it should use the default IP. (or one of the first Ip's found, not sure).
    So you basically find the IP used by the server alternatively; the computer local IP.
     
Thread Status:
Not open for further replies.

Share This Page