I'm building an app on android but I have a problem with this
InetAddress.getByName(ipAddres).getHostName() return ip Addres
Java
InetAddress.getByName(IpAddres).getHostName() return hostname
so why on android the same code gives the ip address and not the hostname, I need the hostname