-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
mDNS doesn't seem to be working #8078
Comments
I can confirm that mDNS is working, and that
Given that:
I'm going to assume that this isn't a bug for now. Could you open a thread in discuss.ipfs.io? That and do some more mDNS specific testing (try other mDNS apps, maybe pull up wireshark, etc.). |
You know... I think this might be a conflict with Avahi. I'm finding that if I start IPFS before avahi, everything works. If I start it after, Try stopping the avahi daemon on your ubuntu node. Also, make sure |
Ok, so it looks like we may not be using reuseport and it looks like running multiple mdns responders at the same time is just broken in general (avahi is not happy with this). I've updated libp2p/go-libp2p#623 to reflect this. Unfortunately, it's unlikely to get fixed in the near future. Try disabling avahi-daemon on the ubuntu node and see where that gets you. It's not a good fix, but it will narrow things down. |
Hi @Stebalien, thank you for debugging this! I just tried a few things.
Hope that helps narrowing it down. |
Yeah... this seems to be a conflict between mDNS daemons. I'm going to close this as the libp2p issue is really the proper place to track problems with our mDNS implementation. Unfortunately, the only real path forward is to rewrite it. |
Hi,
In my local network i have 2 IPFS nodes.
One go-ipfs on linux (via docker) started with:
docker run -d --name ipfs_host -v $ipfs_staging:/export -v $ipfs_data:/data/ipfs --network host -p 4001:4001 -p 8080:8080 -p 5001:5001 --restart unless-stopped -v /home/mark:/home/mark:ro ipfs/go-ipfs
And one on windows installed via the ipfs desktop installer.
Both nodes have version 0.8.0
Both nodes have this MDNS section in their config:
Now i merely used the IPFS WebUI in the Peers tab to "confirm" this. It was sorted by latency which would put a local network node definitely at the top (with sub-milisecond latency).
Both my nodes don't appear to be able to find each other.
Now i do know that my windows node does not have it's port forwarded in the router so it would have more difficulties connecting to peers. My linux node does have the port forwarded.
When running
avahi-browse -a
(on my linux node) i see nothing from IPFS from either it or the windows node. And yes, i do see a lot more services on my network so mDNS is functioning properly on my network, just no IPFS.I can however manually connect the windows node to the linux node (and vice verse works too) which does make that connection show up as the fastest one in the peers tab.
This seemed to have been a problem in the past #6579 but that was fixed...
If you need specific logs or command outputs, please do tell!
The text was updated successfully, but these errors were encountered: