Why peers cannot discover each other? #4056
-
Code here: https://github.com/SightNet/sightnet-app/blob/master/src/app.rs Local node is listening on /ip4/127.0.0.1/udp/48367/quic-v1
Local node is listening on /ip4/xxx.xxx.xxx/udp/48367/quic-v1
Local node is listening on /ip4/xxx.xxx.xxx/udp/48367/quic-v1
Local node is listening on /ip4/127.0.0.1/tcp/36085
Local node is listening on /ip4/xxx.xxx.xxx/tcp/36085
Local node is listening on /ip4/xxx.xxx.xxx/tcp/36085 But if i start two instances, they won't discover each other(so, i can send messages: Publish error: InsufficientPeers) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Are your peers on the same network? The chat example uses mDNS for discovery which will only work on the local network. |
Beta Was this translation helpful? Give feedback.
Can you somehow verify whether mDNS works on your machine at all?
It relies on multicast so if that is disabled for example then things won't work.