When an Android device connects to a wifi AP, it identifies itself with a name like:
android_cc1dec12345e6054
How can that string be obtained from within an Andr
you can use the code below:
InetAddress address = InetAddress.getLocalHost(); System.out.println(address.getHostName()); // <-- host name is here!
And actually, you can more info using this function. such as... other devices hostname which are in the same network.