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

locally-discovered-nodes cannot discover each other on the same wi-fi hub #3084

Open
lcp2000k opened this issue Jan 2, 2025 · 3 comments
Open

Comments

@lcp2000k
Copy link

lcp2000k commented Jan 2, 2025

For example, the locally-discovered-nodes can discover each other when two instances are opened on the same computer. However, when each computer on the same Wi-Fi hub opens one instance, they cannot discover each other. Please confirm if there is a bug somewhere.

@matheus23
Copy link
Contributor

matheus23 commented Jan 2, 2025

We don't know of a bug.

On some Wifis, IP multicast is disabled. This depends on the Wifi router. Unfortunately the discovery-local-network feature of iroh will only produce results when you're connected to a Wifi router that supports IP multicast.

Your OS can "intercept" IP multicast packages and decide to send them to local listeners, which is presumably why you're seeing it work locally.

@lcp2000k
Copy link
Author

lcp2000k commented Jan 2, 2025

I tested the open-source project rust-libp2p (mdns) and the open-source project mdns-sd in the same Wi-Fi hub environment, and nodes on different computers can discover each other. How does iroh's mDNS differ from these, and have there been any optimizations considered?

@matheus23
Copy link
Contributor

Great. I'm not familiar with how rust-libp2p's mdns nor mdns-sd work, so I can't comment on differences.
(We use the swarm-discovery crate for iroh.)
You can try turning on logging using the tracing_subscriber crate and see if there's anything useful in the logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants