Hey guys, I am trying to match IPs here and for some reason getHostName() is returning strings like this: Code: c-67-183-61-27.hsd1.wa.comcast.net Any ideas?
That's because a hostname is not an IP: http://en.wikipedia.org/wiki/Hostname You might want to use player.getAddress().getAddress().getHostAddress() edit: to get a byte[] containing the IP address: player.getAddress().getAddress().getAddress()