Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When creating Bonjour on Windows, MacOSx + iOS is unable to resolve the service #57

Closed
tonetechnician opened this issue Mar 28, 2020 · 1 comment

Comments

@tonetechnician
Copy link

tonetechnician commented Mar 28, 2020

Hi there,

Hoping someone may be able to provide some assistance. I'm trying to have my Windows bonjour service discovered on an iOS/MacOSx Bonjour browser.

I am using the basic startup code given in the module:

var bonjour = require('bonjour')()
 
// advertise an HTTP server on port 3000
bonjour.publish({ name: 'immersivedsp-server', type: 'http', port: 8001 })

So far, it seems to discover that the service is on the network, but is unable to resolve the service. My MacOSx bonjour browser just shows the name but no other information (immersivedsp-server):

Screenshot 2020-03-28 at 14 06 34

When I run start the same Bonjour service on MacOSx it resolves and the MacOSx browser shows the correct information:

image

This is mirrored in my cordova iOS app that uses cordova-zeroconf-plugin. It shows that the service has been added but I never get the resolved message. This doesn't happen on Android.

Checking Wireshark, I see that the messages are definitely going across, so it seems to be an issue with only with the Mac/iOS.

image

Any guidance would be greatly appreciated!!

@tonetechnician
Copy link
Author

tonetechnician commented Mar 30, 2020

I was able to solve this issue. Hopefully this can help if anyone else runs into the same issue.

I was required to specify the "host" field when publishing my bonjour service. something like this:

bonjour.publish({
    name: 'myService', 
    host: 'myService.local',
    type: 'http', 
    port: 8001,
});

I was able to discover on dns-sd on the Mac aswell as my Cordova app :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant