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

Add network discovery #5

Open
Jenna1337 opened this issue Aug 26, 2024 · 3 comments
Open

Add network discovery #5

Jenna1337 opened this issue Aug 26, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Jenna1337
Copy link
Member

Jenna1337 commented Aug 26, 2024

Add support for Simple Service Discovery Protocol, and Universal Plug and Play.

Don't forget to add settings to enable/disable them as well.

@Jenna1337 Jenna1337 added the enhancement New feature or request label Aug 26, 2024
@Jenna1337
Copy link
Member Author

Note: a custom multicast protocol might work better, since SSDP and UPnP seem fairly complex and over-engineered.
All it needs to do is advertise its IP address, port, and text identifying what service it is. A simple text JSON format would suffice.

@Jenna1337
Copy link
Member Author

@Jenna1337
Copy link
Member Author

We can use the multicast address 239.81.37.120.
See also: https://learn.microsoft.com/en-us/dotnet/api/system.net.sockets.udpclient.joinmulticastgroup?view=netframework-4.0#system-net-sockets-udpclient-joinmulticastgroup(system-net-ipaddress)
and https://learn.microsoft.com/en-us/dotnet/api/system.net.sockets.udpclient.dropmulticastgroup?view=netframework-4.0

also, since the IP address of the server should be the same as the multicast packet source, we may not need to include an IP address in the UDP data; it could be just the port and the name/description/identifier of the service.

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

No branches or pull requests

1 participant