You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I finally got through the hoops on getting this working on my Raspberry Pi 3, running Raspbian Jesse. I dug this out of the issues to get it working.
var sequence = [
mdns.rst.DNSServiceResolve(),
'DNSServiceGetAddrInfo' in mdns.dns_sd ?
mdns.rst.DNSServiceGetAddrInfo() :
mdns.rst.getaddrinfo({families:[0]}),
mdns.rst.makeAddressesUnique()
];
var browser = mdns.createBrowser(mdns.tcp('http'), {resolverSequence: sequence});
I register this event handler:
browser.on('serviceUp', function (service) {
console.log("service up: ", service);
});
... and I actually find stuff on my network (like an HP printer). The odd thing, to me, is that I seem to get everything in duplicate. And, to boot, I also see the service that I'm advertising from the same program. Is the library supposed to discover services running locally? Any way to prevent it from doing that? Here's an example of the discoveries on my network:
The odd thing, to me, is that I seem to get everything in duplicate
Yes, that's odd. It most likely is yet another raspbian networking issue. I don't know raspbian first hand so I can't help, I'm afraid. I could rant a bit about the crazy stuff I hear about the raspbian network stack if it helps? It definitely is not normal.
And, to boot, I also see the service that I'm advertising from the same program.
That on the other hand is perfectly normal and by design (of the underlying system service). The name property is unique on the local network... #166 has some code.
Hi all,
I finally got through the hoops on getting this working on my Raspberry Pi 3, running Raspbian Jesse. I dug this out of the issues to get it working.
I register this event handler:
... and I actually find stuff on my network (like an HP printer). The odd thing, to me, is that I seem to get everything in duplicate. And, to boot, I also see the service that I'm advertising from the same program. Is the library supposed to discover services running locally? Any way to prevent it from doing that? Here's an example of the discoveries on my network:
The first two and the next two seem like pure duplicates to me... am I missing something?
The text was updated successfully, but these errors were encountered: