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

Use multicast-socket for broadcasting mdns messages #16

Merged
merged 2 commits into from
Jul 7, 2020

Conversation

bltavares
Copy link
Owner

This commit introduces
multicast-socket as the
underlying socket implementation for mdns discovery.

It is allowing to listen and broadcast messages on multiple interfaces.
Tested and working:

  • Win x Linux (WSL) discovery
  • Same host Linux (WSL) discovery

Not working:

  • Same Win discovery

Partially working:

  • Win x Linux (WSL) discovery - Origin address returns 0.0.0.0

Fixes #15

This commit introduces
[multicast-socket](https://github.com/bltavares/multicast-socket) as the
underlying socket implementation for mdns discovery.

It is allowing to listen and broadcast messages on multiple interfaces.
Tested and working:

- Win x Linux (WSL) discovery
- Same host Linux (WSL) discovery

Not working:
- Same Win discovery

Partially working:
- Win x Linux (WSL) discovery - Origin address returns 0.0.0.0
@bltavares
Copy link
Owner Author

This PR bltavares/multicast-socket#5 will fix Win x Win discovery and weird WSL discovery as well.

Nothing like debugging OS-level network stack errors and FFI debugging for 3 weekends. yay.

@bltavares bltavares marked this pull request as ready for review July 7, 2020 02:13
@bltavares bltavares merged commit 93b4f7d into master Jul 7, 2020
@bltavares bltavares deleted the hyperswarm-mdns branch July 7, 2020 02:14
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

Successfully merging this pull request may close these issues.

Discovery: MDNS does not find devices across multiple interfaces
1 participant