4 ms·
Anyone know if there are any open-source libraries which wrap this all into a usable `get_{tcp,udp}_connection(peer_id)` API, preferably with fallback to a rela
by Shish2k 5y ago
Anyone know if there are any open-source libraries which wrap this all into a usable `get_{tcp,udp}_connection(peer_id)` API, preferably with fallback to a relay server? I feel like there really should be, but nearly all the tools I’ve seen with this functionality are closed source, and the few open-source things all do their own custom logic rather than a shared library :/
- rytill 5y agoJust curious, what would you use this for and from what language?
- MayeulC 5y agoipfs? With ipfs p2p. It has swarm-mediated firewall traversal, and can fall back on relays within the swarm. Unfortunately, there hasn't been much progress on that funtionality, as the ipfs team seems to focus more on "crypto" lately. But it mostly works: http://docs.ipfs.io.ipns.localhost:8080/reference/cli/#ipfs-p2p http://docs.ipfs.io.ipns.localhost:8080/reference/cli/#ipfs-... and I guess this gives more context on relays: https://github.com/ipfs/go-ipfs/issues/7433#issuecomment-640888631 https://github.com/ipfs/go-ipfs/issues/7433#issuecomment-640... Otherwise, there is a useful library of firewall traversal libraries in any webrtc implementation.