agnat/node_mdns

Advertisement difference between Windows and Mac?

Closed this issue · 1 comments

Is advertisement working on Windows?

My Android app can detect the advertisement from Mac but not from Windows
(Windows 10, Bonjour installed + node-gyp compiled successfully)

Here's the dns-sd command I ran from Mac:

➜ dns-sd -B _myservice._tcp .
Browsing for _myservice._tcp
DATE: ---Thu 25 May 2017---
23:29:04.300  ...STARTING...
Timestamp     A/R    Flags  if Domain               Service Type         Instance Name
23:29:04.301  Add        3   4 local.               _myservice._tcp.       PC
23:29:04.301  Add        3  10 local.               _myservice._tcp.       Mac
23:29:04.301  Add        2   4 local.               _myservice._tcp.       Mac

Not sure why there are 2 entries for Mac but only a single entry for Windows

Thanks a lot!

After switching to mDNS-js, the problem is fixed and don't need to worry about compilation problems

Here's what mDNS-js advertise in Windows:

Timestamp     A/R    Flags  if Domain               Service Type         Instance Name
19:17:59.223  Add        2   4 local.               _myservice._tcp.        PC

Thank you for this library anyways