given the ip address of a computer on the same network of my Android device, i have to find its NetBIOS/FQDN name ... is there any "clean" solution to accomplish this with the Android SDK and generally speaking in java ?
Obviously InetAddress.get*HostName does not return the NetBIOS name :)
Actually, the code provided by Tom does not work, this code works for me (with JCIFS lib.)
returns NetBios device name as string if successful or throws UnknownHostException if target does not exist or has no NetBios name.
You can use JCIFS open source library.
works both ways, ip address to hostname and vice versa.
Try this...