How to change android device name used by NsdManager?

有些话、适合烂在心里 提交于 2019-12-10 20:15:33

问题


I am using NsdManager to register a web service on the local network. My problem is that the device name is called "android", so I can access the phone as "android.local" from my laptop. How can I change that name? I would like something more unique.


回答1:


You cannot change this (on non-rooted devices). "android" is the host name of the device, ".local" is the suffix added by the mDNS (see this article).



来源:https://stackoverflow.com/questions/13796841/how-to-change-android-device-name-used-by-nsdmanager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!