InetAddress gethostname returning ipAddres on android -


i'm building app on android have problem this

inetaddress.getbyname(ipaddres).gethostname() return ip addres 

java

inetaddress.getbyname(ipaddres).gethostname() return hostname 

so why on android same code gives ip address , not hostname, need hostname

check dns server, had similar issue. installed , configured dnsmasq , able hostnames ip addresses


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -