I recently decided to host my own bittorrent tracker so I can share files with
my mum without using anyone else’s service.
I successfully installed opentracker and I wanted to share the info in case some
of you wanted to do the same. After a ssh on the server, here is what I did :
Install opentracker :
cd /home/admin git clone git://erdgeist.org/opentracker cd opentracker sudo apt install libowfat-dev zlib1g-dev # necessary to compile opentracker make
Open the port in the firewall :
sudo yunohost firewall allow Both 6969
In my case, my server is behind a router, I also forwarded port 6969 from WAN to
As of now, it is possible to test if it works properly :
On the server, run opentracker :
On a computer, create a torrent file and set its tracker to
“udp://yourserver.nohost.me:6969” (replace “yourserver.nohost.me” with your
Share it with a friend, transfer will work as expected.
Now, if you stop opentracker on the server, you won’t be available to share your
files anymore. So, use systemd to run opentracker at startup by writing a file
(make sure to add an & at the end of the ExecStart command, otherwise the server
will never complete the boot sequence) :
sudo vim /etc/systemd/system/opentracker.service
Then enable the service and start it:
sudo systemctl enable opentracker.service sudo systemctl start opentracker.service
That’s it. Your bittorrent tracker is now functioning.
Hope this helps.
Ps: feel free to tell me if I missed anything.