Skip to content

Does this work on Windows? #1

@AshishShanker

Description

@AshishShanker

I am trying to use this lib to power service discovery on a Windows 10 machine and while I am able to publish a service and see it advertised through the dns-sd command through cmd, this library's .discover() method always returns an empty array. I am publishing a websocket service under _ws._tcp.local., but I tried looking for http services and they don't get discovered by this lib either.

Stepping through code, I do see DnsSdComposer.compose() return a valid buffer, and DnsSd._startListening() returns a valid _source_address, but when DnsSd._startDiscovery() sends a UDP datagram, nothing appears to happen.

I am going to try and dig deeper using protocol sniffing to see what really happens to that datagram, but just wanted to see if you might have some quick pointers for me.

Note that both the DNS client and server are on the same machine. The server is deployed as a Windows service written in node-windows and it creates a service advertisement upon startup using bonjour. I have Apple Bonjour SDK for Windows installed on the machine, and I am using IPv4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions