I have some nodes. Each node belongs to other network. Each node has private IP like 192.168.0.2 and stays behind NAT.
Is there any possibility to communicate between Nodes? Actually, I need to transfer files between these independent nodes.
I try to use this project - https://github.com/libp2p/go-libp2p. But libp2p has some limitations:
- Both nodes have private IP address (same network)
- At least one of them has a public IP address.
But I have nodes with private IP address, and they belongs to different network.
Update.
There are such solutions:
- https://en.wikipedia.org/wiki/Hole_punching_(networking)
- https://en.wikipedia.org/wiki/Universal_Plug_and_Play
- https://stackoverflow.com/a/8524609/1756750
- UDP/TCP hole punching vs UPnP vs STUN vs?
- https://stackoverflow.com/a/31623109/1756750
- Behind NAT to behind NAT connection
- http://www.brynosaurus.com/pub/net/p2pnat/