Trouble getting mDNS discovery to work. #5524
-
Hi there! My university has a new course teaching p2p with libp2p and rust. We followed through the chat app example in a tutorial and I think that I have an understanding of how it (kinda) works; however, I'm unable to get my code to work. I've copied the example exactly, including the .toml file, from the chat example, and have also used code that a friend wrote that works on his computer, but I am unable to get the mDNS discovery part working. I am using a 2023 MacBook Pro running macOS Sonoma 14.1 and don't have much of an idea where to start. I have run the terminals with sudo permissions but still has the same issue.
My understanding is that mDNS is working but I don't have much of a clue as to why the peers are unable to discover each other. Any help is much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Most of the time mdns doesnt work because either A) The firewall on the machine is blocking it (or the service on the machine is disabled or need permission, which might be the case for mac); or Could you provide the logs from when you ran the example using RUST_LOG=libp2p=debug ? |
Beta Was this translation helpful? Give feedback.
Most of the time mdns doesnt work because either
A) The firewall on the machine is blocking it (or the service on the machine is disabled or need permission, which might be the case for mac); or
B) The router or modem used is blocking it
Could you provide the logs from when you ran the example using RUST_LOG=libp2p=debug ?