Search code examples
hololensdns-sd

DNS-SD for HoloLens Device Portal


Anyone has used DNS-SD to discover the presence of HoloLens' Device Portal on the local network? Though docs claim it does advertise itself, I have found this very unstable and discovery is very random. It does show up for a while and then disappears for hours. Anyone can suggest a reliable way I can detect the presence of HoloLens on my local network?


Solution

  • Looks like HoloLens is not very keen to respond to IPv4 broadcasts; it does, but it'd better not respond at all than respond randomly making it look like it works, when it doesn't. Fortunately it is pretty reliable in responding to IPv6 broadcasts and the response actually includes it's both IPv4 and IPv6 addresses, which solves my problem. Make sure that DNS-SD (MDNS) library you're using supports IPv6.