Hello folks,

TIL that how can you bootstrap my DHT nodes before downloading a torrent.

Find a good famous software from fosstorrent and seed it for some while and then when you seed it for some time, your DHT count will be increased. now you can easily download a torrent by just providing the hash of the torrent ( assuming some DHT node knows where the file of the given hash is ).

hope you learned something new today, if you have a good idea than this feel free to add it in the comment section :)

  • Brickfrog@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    2 days ago

    Your post title is a bit misleading, I think you’re talking more about trying to speed up the process of finding nodes/peers?

    All torrent clients including qBittorrent already have a built-in method of finding new DHT nodes and will find new nodes automatically. If the torrent client does not have any DHT nodes to contact yet (e.g. it’s the first run and hasn’t already compiled its own list of recent DHT node IP addresses) then what it does is reach out to DHT bootstrap node servers. Torrent clients usually have that coded in, sometimes you can change them - in qBittorrent you can go to Tools/Options/Advanced, under DHT Bootstrap Nodes you’ll see the current list of well known bootstrap nodes that qBittorrent uses by default

    dht.libtorrent.org:25401, dht.transmissionbt.com:6881, router.bittorrent.com:6881, router.utorrent.com:6881, dht.aelitis.com:6881
    

    I think most/all torrent clients use the same ones.

    Not sure how current this one is, the code to compile and run your own DHT bootstrap node server is on Github

    https://github.com/bittorrent/bootstrap-dht

    Back in 2016 Libtorrent launched its own bootstrap node server, it’s now one of the default bootstrap node servers for most/all torrent clients.

    https://blog.libtorrent.org/2016/09/dht-bootstrap-node