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

Feature request: publishing "services" #206

Open
darkvertex opened this issue Aug 29, 2024 · 1 comment
Open

Feature request: publishing "services" #206

darkvertex opened this issue Aug 29, 2024 · 1 comment

Comments

@darkvertex
Copy link

Summary

Beyond resolving hosts, mDNS also allows broadcasting so-called "services". This is handy for doing autodiscovery mechanisms. It's the way devices like printers and Chromecasts advertise that they exist in your wifi.

Motivation

Other libraries are not pure Go and require talking to the Avahi Daemon or mapping a socket over a volume when used from a container, which makes it annoying to use in Windows as you are forced to use WSL and litter the host with avahi.

Describe alternatives you've considered

I looked at hashicorp's library
which is supposed to permit this, but development seems to be dead and I was not able to get it to publish services in Windows despite their examples not erroring. 🤔

@alinke
Copy link

alinke commented Aug 31, 2024

+1 to be able to resolve mDNS services, I have the same use case. @darkvertex this lib actually does that and works with Windows github.com/cpuchip/zeroconf/v2. I am using it now in my code but it does not work well for cross platform across mobile devices (am using the fyne framework for a mobile app) and was thinking to try this one instead but I don't see how it can discovery the services. This addition would be great if possible.

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

2 participants