如何更改NsdManager使用的android设备名称? [英] How to change android device name used by NsdManager?

查看:183
本文介绍了如何更改NsdManager使用的android设备名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用NsdManager在本地网络上注册Web服务.我的问题是设备名称称为"android",因此我可以从笔记本电脑以"android.local"访问手机.我该如何更改名字?我想要一些更独特的东西.

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.

推荐答案

您不能更改此设置(在非root用户的设备上). "android"是设备的主机名,.local"是mDNS添加的后缀(请参阅本文).

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).

这篇关于如何更改NsdManager使用的android设备名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆