I am looking for a way to get IP address of known hostname at LAN .
The way i worked is to perform a network scan, The scan starts from 192.168.1.1 to 192.168.1.255 ,So i've tried InetAddress.getHostName(),InetAddress.getCanonicalAddress() but retrieves the same IP address.
I've tried make a scan using nslookup . it worked perfectly at java compiler, but it's not possible in android ..
I couldn't test dnsjava library bacause of errors at compiling heading by : NoClassDefFoundError,The file dnsjava-2.1.7.jar is added to libs directory.
any help ? *sorry for my english.