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

osc server discovery #33

Open
vlappa opened this issue Apr 6, 2023 · 2 comments
Open

osc server discovery #33

vlappa opened this issue Apr 6, 2023 · 2 comments

Comments

@vlappa
Copy link

vlappa commented Apr 6, 2023

I'm looking for something that can discover if there is a osc server (open sound control, udp) running on the same computer or in the local network.

Let's say there is a osc server with certain functionality and a tool is used to find if such a server is running (and on which port). A application might then start a server if none is running, give the user the option to connect to a running server, or let the user choose which server it wants to use.

Could peerdiscovery be helpful for this? I saw this project is using bonjour/avahi.
https://github.com/rbdannenberg/o2

I'm just orientating at the moment for possible solutions and stumbled upon this project.

@schollz
Copy link
Owner

schollz commented Apr 6, 2023

Hi @vlappa, yes absolutely. In fact I'm using peerdiscovery for exactly this purpose: - I have multiple OSC servers on a network and I want them to be aware of each other so I'm using peerdiscovery to connect them: https://github.com/schollz/zxcvbn/blob/main/lib/oscconnect/main.go

@vlappa
Copy link
Author

vlappa commented Apr 7, 2023

Ok cool. The way to understand how this works is understanding how multicast is working I guess. Skimming over it suggests all clients/servers should support this and talk with each other on the same port.

Avahi doesn't need this I think, but not sure how easy it is for Desktop users to configure Avahi and if it conflicts with using systemd or not.
https://wiki.archlinux.org/title/Avahi

I've this in the back of my head, I need to dive into it a little deeper at some point.

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