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

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

Unable to open serial port using Putty to bluetooth device on windows 7 64 bit -