简体   繁体   English

如何在chrome打包的应用程序中找到mDNS实例名称?

[英]How to find mDNS instance name on chrome packaged apps?

I'm using this example chrome app as base to browse mDNS. 我正在使用此示例chrome app作为浏览mDNS的基础。 It is working quite well and gives me service name and IP of the service provider but I'm unable to find the human readable service instance name. 它工作得很好,并给我服务提供商的服务名称和IP,但我无法找到人类可读的服务实例名称。

I have not used this in a while, but have you had a chance to check out this repo? 我有一段时间没用过这个,但你有没有机会看看这个回购?

https://github.com/agnat/node_mdns https://github.com/agnat/node_mdns

"mdns adds multicast DNS service discovery, also known as zeroconf or bonjour to node.js. It provides an object based interface to announce and browse services on the local network." “mdns向node.js添加了多播DNS服务发现,也称为zeroconf或bonjour。它提供了一个基于对象的接口,用于在本地网络上发布和浏览服务。”

See the docs, particularly the browser below! 查看文档,尤其是下面的浏览器!

http://agnat.github.io/node_mdns/user_guide.html#browser http://agnat.github.io/node_mdns/user_guide.html#browser

Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM