becvert / cordova-plugin-zeroconf

Cordova ZeroConf Plugin
MIT License
81 stars 57 forks source link

added but won't resolve #98

Closed ndmgrphc closed 2 years ago

ndmgrphc commented 2 years ago

I'm trying to get a raspberry pi discoverable from a Capacitor ios app.

I'm confused as to what the requirements are to get from added to resolved -- it seems that resolved never fires for the raspberry pi (which appears to be successfully broadcasting utilizing the nodejs bonjour package.

I can "watch" using the bonjour on my macbook (on same network) and the results are 100% as expected. I see a Brother printer and my raspberry pi, IP addresses and all.

I'm not sure if I have an iOS issue or if something about my bonjour publishing is wrong.

Are there port limitations for security reasons? I've tried 8081, 8171, etc. No luck.

Using the nodejs bonjour package as the observer (again, separate machine, same network) the log output for my Brother printer are nearly identical with the raspberry pi.

Is there any way to debug this plugin's resolution failure? I noticed the host is "raspberrypi" but the Brother printer is "BRN00809283BD4C.local" -- maybe .local is required?

Sorry. Trying everything here...

ndmgrphc commented 2 years ago

Indeed, modifying the raspberry pi's host name to end in .local and rebooting the pi solved the problem. Hopefully this helps someone. Closing and thanks for the great work.