News for hackers. Stuff that matters.
Re:Show HN: Peer-to-Peer data transfer tool based on libp2p by dennis-tra on Saturday February 13, 2021 @03:06PM (#26126309)
Thanks @wngr!

I really appreciate that this project gets a little attention.

Libp2p provides ways to establish a connection through NATs. For more information I recommend looking up the Identify [0] and Circuit Relay [1] protocols, as well as the NAT Traversal docs [2].

I implemented time based sharding because the DHT entries will remain there for up to 24h. So there is a significant chance for a channel ID collision that would result in connection attempts to peers that are long gone.

This is indeed a bit unergonomic and I haven’t covered edge cases that come with that approach. Open for suggestions :)

Best

[0] https://docs.libp2p.io/concepts/protocols/#identify [1] https://docs.libp2p.io/concepts/protocols/#circuit-relay [2] https://docs.libp2p.io/concepts/nat/

There are no comments on this comment yet.