On the public IPFS network, they use relay nodes (which are reachable) and hole punching. It’s less efficient than using port mapping, but it works. Unfortunately, relay nodes don’t work when using swarm keys, so at least one of your two nodes has to be reachable for them to establish a connection. This isn’t an IPFS issue, it’s just the way the internet works.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Node unable to connect problem | 0 | 316 | January 28, 2021 | |
Using public relays in private network
|
6 | 1241 | March 1, 2021 | |
Sharing p2p connection(of two peers) between two ipfs daemons on the same device | 1 | 509 | March 2, 2021 | |
Connect peers directly | 1 | 305 | November 18, 2021 | |
How to connect to a node behind NAT? | 12 | 3984 | November 1, 2021 |