I see names of computers in my router's DHCP leasing list. My android galaxy tab is listed under an alphanumeric name. How do I set a friendly name that I like?
You can change the hostname to a less cryptic name in the Developer Options under Settings. Under the "Debugging" section in the Developer Options you will see an option called "Device hostname" which should currently be set to this rather cryptic name. You can change it to any alpha numeric name you like.
If you are on Android 5.0 that option is not there anymore. Though using the ADB shell still works. See this answer: How to set friendly network name of android computer? Root doesn't seem to be required on my phone. From the answer linked above without acquiring root access:
adb shell getprop net.hostname setprop net.hostname <new_hostname>
Open terminal. Enter the following:
adb shell su getprop net.hostname setprop net.hostname <new_hostname>
Root access is required.
In some Android phones, you may change in
- Top right menu > Advanced
- Wi-Fi Direct
- Top right option Rename device
- Write your new device name and press OK
- Turn off and on your Wi-Fi
- If it has no effect, restart your phone.
Important: Not all Android phones have this option, and not all phones modify their hostname correctly, even after modifying the device name from that option.
Just wanted to reference another related solution I came across using ADB (and requires rooted device): http://nileshgr.com/2012/10/13/how-to-change-wifi-host-name-of-your-android-device. I would however prefer the ADB commands presented here on SO than this link, but it's another method at least.
The name that is sent to the DHCP server is not the hostname as is commonly thought, it's the VID (Vendor ID Code) which you cannot change. You could try changing the name at the router level if possible.
This solution is using the commands posted by @bayuah above, but not using
su at all.
This is on a rooted device (Nougat AOSP 7.1.2).
Using JuiceSSH terminal, enter two commands:
getprop net.hostname setprop net.hostname <new_hostname>
All above mentioned options can not stay after phone reboot Just did ADB-->setprop Work good! Net name is changed BUT! After phone reboot - net name is the same (old one_)
Simply download and install the app called "Change Hostname" from the Play Store and enjoy editing your android device hostname (android-xxxxxxxxxxx).
Root access is required though, sorry for the non-rooted users.