Skip to content

Instantly share code, notes, and snippets.

@jhargis
Forked from sourcec0de/PrivateTorrent.md
Created March 12, 2021 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhargis/8e49fb4a07a43351806f24946f09490f to your computer and use it in GitHub Desktop.
Save jhargis/8e49fb4a07a43351806f24946f09490f to your computer and use it in GitHub Desktop.
Host a private torrent tracker, and seed a torrent on ubuntu 12.10

Install dep, and start tracker

sudo apt-get install bittornado ctorrent
bttrack --port 6969 --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full

Now, create a torrent file

ctorrent -t -u "YOUR_SERVER_IP:6969/announce" -s new_file_name.torrent file_or_folder_for_torrent

That will yeild a .torrent file. Send that file to your local system where you wish to download the files to and start it in a torrent client.

To start seeding the file run this and let your torrent do its business

ctorrent torrent_file_name.torrent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment