Lurker News
Hello everyone!

I'm currently in a journey to learn and improve my Elixir and Go skills (my daily job uses C++) and looking through my backlog for projects to take on I decided Elixir is the perfect language to write a highly-parallel BitTorrent tracker. So I have spent my free time these last 3 months writing one! Now I think it has enough features to present it to the world (and a docker image to give it a quick try).
I know some people see trackers as relics of the past now that DHT and PEX are common but I think they still serve a purpose in today's Internet (purely talking about public trackers). That said there is not a lot going on in terms of new developments since everyone just throws opentracker in a vps a calls it a day (honorable exceptions: aquatic and torrust).
I plan to continue development for the foreseeable future and add some (optional) esoteric features along the way so if anyone currently operates a tracker please give a try and enjoy the lack of crashes.
note: only swarm_printout.ex has been vibe coded, the rest has all been written by hand.

Comments (72) 22 threads

Show all comments

Showing thread 7 of 22

TheJoeMan2 replies#
Could you please clarify what DHT and PEX are? I'm having trouble searching "tracker PEX".
atmosx1 reply#
DHT (Distributed Hash Table) and PEX (Peer Exchange) let torrent clients find peers without centralised trackers. Hence, you don't need a central place / public tracker anymore
Thaxll2 replies#
You still need a central server though...
perching_aix#
Yes, they just don't track the individual torrents anymore. They only play a role during the initial peer discovery stage (bootstrapping). Peers find torrent swarms on their own, the bootstrap servers are excluded from all that.
LtdJorge1 reply#
If you are connected to the DHT network, you don’t. Unless you mean for DNS and such.
perching_aix1 reply#
No, they mean specifically that in order to connect to such a network, you need to hit some specific central nodes first.
LtdJorge2 replies#
The bootstrap nodes. But those don't _need_ to be centralized, even if they have historically been to some degree. There coul be millions.
immibis2 replies#
If there are millions of bootstrap nodes, how do you find them?
toast01 reply#
If they listen on a well known port, and there are millions, send out a few thousand probes to 'random' IPv4 addresses and you'll most likely find one.

If you get and keep a list of bootstrap nodes when you find one, then you can random select from the bootstrap addresses rather than all routable IPv4 addresses.

immibis1 reply#
What's your IPv6 plan?

Continue this thread — 1 reply

LtdJorge#
You can embed them in the torrent, same as the tracker. But the tracker has to handle all the state, while a bootstrap node just hooks you up with a few (or one) node in the DHT network. After that, it's fully decentralized.

There could other ways, embedding them on SRV DNS records, etc. It's the same issue as with getting a DNS server. You could in theory get addresses of bootstrap nodes from your ISP through DHCP (lol, sure).

perching_aix#
You still need to have a list of a subset of them, and you just have to trust they connect you to the "same network", to the extent that even makes sense, no?