Replies: 2 comments 9 replies
-
We only update the routing table for outbound connections because we cannot be sure that the observed address of another node is actually dialable (e.g. behind NAT). This is why A doesn't discover B in your topology.
Are the nodes behind NAT? If so, did you forward the ports in your router? |
Beta Was this translation helpful? Give feedback.
-
Ok so I tried to implement port forwarding for both my router and my Windows instance. |
Beta Was this translation helpful? Give feedback.
-
I saw bunch of "answers" across the internet, but couldn't find any reliable example.
Here is the step by step process I would like to implement:
I got two issues with this:
-> The first is that despite connecting B to A (A emit RoutingUpdated, A doesn't seems to discover B (it doesn't emit an event). So through gossipsub, B send heartbeat to A, but not the other way around. When facing this issue, both nodes are running on the same local machine (but I use public addresses).
-> The second issue arise when I try to connect two nodes from different machine, either on the same network or not. When doing so, I cannot manage to connect two nodes together. The address A is exposing is responding to the pingcommand, but the telnetcommand timeout. I took down all my firewalls, VPN and everything that could block the request, but nothing changed. Also, as both node were working on WSL, I looked into windows ip configuration and tried every IP I've found, but couldn't get past this issue.
Once both issues are solved, I will make a small repo that expose a reliable example, because that's what I couldn't find online, and I think it would benefit the community.
Here is my behavior définition:
https://pastebin.com/QY9wrp45
My swarm (pretty basic so I paste it here):
and the swarm execution:
https://pastebin.com/9muEb89L
Beta Was this translation helpful? Give feedback.
All reactions