Hacker News new | past | comments | ask | show | jobs | submit login

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 :/



ipfs? 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-... and I guess this gives more context on relays: https://github.com/ipfs/go-ipfs/issues/7433#issuecomment-640...

Otherwise, there is a useful library of firewall traversal libraries in any webrtc implementation.


Just curious, what would you use this for and from what language?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: