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 | |
|---|---|---|---|---|
| Private network p2p-circuit swarm connect success, but ipfs cat not work! | 10 | 538 | December 28, 2022 | |
| Can i make a private ipfs network (of public/external ip's) ? This would require my own gateway as well? | 16 | 7246 | June 17, 2019 | |
| Kubo is using UPnP instead of manually configured port forward | 12 | 545 | October 1, 2022 | |
| Need help! IPFS Swarm connect failure between two networks | 24 | 2957 | January 25, 2021 | |
|
Setup advice - use case
|
12 | 768 | February 14, 2024 |