cjb / GitTorrent

A decentralization of GitHub using BitTorrent and Bitcoin
MIT License
4.75k stars 262 forks source link

NAT traversal? #35

Open anarcat opened 9 years ago

anarcat commented 9 years ago

does gittorrentd attempt any tricks to traverse nats? i tried to serve a repo behind a NAT and i can't access it from the outside at all...

d33tah commented 9 years ago

According to one comment on lwn.net, not:

No IPv6 support, no UDP holepunching
Posted May 30, 2015 15:42 UTC (Sat) by jch (guest, #51929) [Link]

The DHT implementation they're using doesn't support BEP-32 [1], and there's no support for the (undocumented) ut_holepunch extension, so you better set up port forwarding if you want to see any peers.
[1] http://www.bittorrent.org/beps/bep_0032.html

Source: https://lwn.net/Articles/646628/#CommAnchor646700