Jul 24, 2008

How To Set Up A Bt Tracker - How to set up a Bittorrent tracker

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials

free web hosting

How To Set Up A Bt Tracker - How to set up a Bittorrent tracker

AnimeExile
How to set up a BitTorrent "Server"
T
here are 4 different elements that you will need. Even if you cannot offer all these from your machine, you might still be able to offer files via BT (so read on...):


A BT "tracker" running on a publicly-available machine. Publicly-available essentially means either a static IP address, or a stable domain.
Create a "metafile" for your fileset. This will be the .torrent file that you see in the BT download file link.
Run the BT downloader on your system, specifying a download directory where you already have the files stored.
Offer the metafile to those who will download the files from you.
This is an unusual procedure, and future developments to the BT software may change the process. Like all things, we can break it down into small parts, in order to understand and simplify the process.
Firstly you need to download the BT source package from the BitTorrent Homepage. Check the BUILD.windows file; BitTorrent version 3.0 will tell you that you need 3 additional downloads, of Python version 2.0, wxPython, py2exe, and the nullsoft installer. The last 3 items are only necessary if you intend to modify and create your own customised version of BitTorrent, but to run a "server", you will need the first 2. So grab the BitTorrent Source package and Python version 2.0.

The BT source package (for Windows) is a .zip file. Unzip it and place it in a folder such as "C:\BT". You'll need to remember where you put it.

Python is a programming language. The BT source package comprises a collection of Python programs, but you can't run them until you download Python. It doesn't matter where you install Python on your system so pick whatever directory you would normally use and just install as usual.

Now you need to think about your BT tracker. If you're running a web or ftp server, you probably advertise it either with a plain-language url ("http://www.myserver.com"), or perhaps as a static IP address (usually assigned by your Service Provider) - such as "207.46.230.219". Most individuals on the internet don't have static IPs, so a plain-language dynamic IP will be required. These can be obtained from many sources for free; I use www.myip.org, but if you click the link you'll see that they no longer offer .myip.org addresses. Instead they now refer you to an alternate service - dns2go.com. Newsflash - I just visited the page whilst preparing this FAQ and I see the dns2go.com service is shortly to become a pay service. I'll put up links to other domain name providers as soon as possible. An internet search should turn up many different free domain name providers.

If your ISP or network won't let traffic through on Port 6969, or if for some reason you don't want to run the BT tracker on your machine, it is possible to use a tracker running on a different site. You could, for instance, use mine! When you think about this, you can probably see why there may be some legal implications, and future developments with BitTorrent will likely change this method of using trackers. For now, if you want to use my tracker, please e-mail me and we can try it out. (It's possible to configure the tracker to run on other Ports, but I suppose that if you can't use Port 6969 you probably won't be able to use other Port numbers either).

If you want to run your own tracker, then your machine will need to recognise itself as "http://www.myserver.com" or as "http://207.46.230.219" (or as whatever IP address you are using). Here's another critical issue: the http:// address that you use will be referred to by other downloaders, so you MUST use an addressing method that works for the "outside world" for seeing your machine. Most specifically, you must NOT use the local machine name or local network IP address. So, you got to this site (probably) by using a "http://smiler.myip.org" address. If you lookup smiler.myip.org (using say Ping), the IP address it shows you is - strictly speaking - the IP address of my modem. That's why I have to configure the NAT settings on my modem to pass Port 6969 connections through to the BitTorrent machine. Inside my network, I have to tell my machines that "smiler.myip.org" is the BitTorrent box, and I do that by amending my Windows hosts file. (Start button / Find / (type "hosts") / right-click / Open-With / Notepad). Add a line that says "192.168.1.5 myserver.com" (without the quotation marks, changing the IP address to your local network IP address and changing myserver.com to the domain that you obtained for yourself).

This is all standard network stuff, and isn't much more complicated than installing an ADSL or cable modem, so I hope you're with me so far. If any network specialists care to correct any errors, or rewrite this for me, please let me know.

The next thing you need to do is to prepare your fileset. Gather together your files and place them in a folder together. Short folder names are best, since (on a Windows system) we're going to be doing some DOS commands. Let's say you placed some files in "I:\BT\filesetfolder".

Now we know where we will be running the tracker, and we have a fileset ready. The next thing I did was create a (one-line) DOS batch file for running the tracker. This is the command I (used to) use:


C:\PROGRA~1\BITTOR~1\source\bttrack.py --port 6969 --dfile dstate"
Notice I used DOS short filenames. This doesn't help legibility, but (stupid me), I 'm not clear on how to run DOS commands using the long filenames. Anyway, you need to specify the path to your BitTorrent source files, then "bttrack.py". The port parameter identifies that the tracker will use for communicating with downloaders, and the "--dfile" bit identifies "dstate" as the name of a temporary file that will be used to save connection information. Save this one-line batch file somewhere that you can get to easily (I have a folder on my desktop containing a whole set of BT batch files), and give it a nice sensible name - like "Start BitTorrent tracker.bat".

You can now run the tracker. If the DOS box flashes up and then quickly disappears, there is an error somewhere. If you can't make this work try opening a DOS box and navigating to your BT source folder, then typing the bttrack command manually. You should see helpful error messages in that case.

This is (something like) the command I now use:


C:\PROGRA~1\BITTOR~1\source\bttrack.py --port 6969 --dfile dstate >>"I:\logs\BTlog.log"
The output from this command goes to a log file, and the format is the same as standard web server logfiles. So I can run a logfile analyzer. To begin with, use the command without the >>logfile.log part. You can see messages in the DOS box that way. Once you have the tracker running, it will stay running in a DOS box until you close it.

With the tracker running, we can now create the "metafile". For this, I created another one-line batch file. Then, whenever I need to create a new metafile, I just copy the batch file and amend the parameters. This is an example:


C:\PROGRA~1\BITTOR~1\source\BTMAKE~1.PY "I:\BT\filesetfolder" http://smiler.myip.org:6969/announce
Notice that there are no wildcards in this command; "filesetfolder" is the name of the folder containing ALL the files I want to offer for download. BTMAKE~1.PY is the short filename for btmakefile.py (in the source folder). This command can take a while to run. The larger the fileset, the longer it takes to run. The output is a file named filesetfolder.torrent, this will be a comparatively small file - a 1.1G fileset that I used resulted in a 25k .torrent file. It depends upon the number of files, and their size. In a real situation, your folder name would probably be something like "gd1972-08-27-shn".

Normally the .torrent file will be placed on a web server, surrounded by a page with the appropriate information, and links. The downloader clicks on the fileset.torrent link, the server offers up the .torrent file and the browser starts the BT downloader. The BT downloader receives the .torrent file - which is comparatively small - and once it has the .torrent file it then knows everything it needs to about how to connect and find other downloaders, plus the names of the files, their sizes, and checksums.

What's also rather cool about this is that you can actually double-click on the .torrent file (from Windows Explorer) and it will start off the downloader. So you can e-mail the .torrent file or arrange it to be placed on a 3rd party website if you're not running your own web server. The Readme with the BT source package says that the webserver must be configured to handle .torrent files as application/x-BitTorrent; I'm not sure how critical this would be - perhaps a web server that wasn't configured this way would still offer the file so you could use your browser to save the file to hard drive, then double-click on the downloaded .torrent file.

Anyway, if you are running a web server, configure it so .torrent files are handled as application/x-BitTorrent, and you should be OK. Place the file on your webserver, and create a page with a link to the .torrent file. If you would like me to place your .torrent file on my server (on my taper-friendly BitTorrent page), please e-mail me.

At this stage, there are no connected downloaders, and no-one will be able to receive the files. The key to kick-starting the operation is to start a downloader running on your system, pointing it at your folder containing the complete fileset. Remember how the BT downloader works:


Allocate filespace (if files do not already exist) for the fileset to be downloaded.
Verify the files to determine what parts (if any) have already been downloaded.
Begin downloading any missing parts.
I don't recall the reasoning, but in actual fact I'm running my "primary" downloads in DOS boxes. This is an example of the commands I'm using. (One advantage is that if I reboot the machine I only need to double-click on the batch files to kick everything off again exactly as it was before).

C:\PROGRA~1\BITTOR~1\source\BTDOWN~2.PY --url http://smiler.myip.org/BT/TOO2002-06-xx-shn.torrent --ip smiler.myip.org --saveas I:\BT\TOO2002-06-xx-shn --display_interval 2
(all as one long line in the batch file).

So for your first, primary downloader - the one you run on your own system - the files already exist - there is no need to allocate or create them. File verification (against the checksums in the .torrent file) will show that the files are complete. Therefore as soon as steps (1) and (2) have been completed (remember, this may take a minute, depending upon filesize), your downloader will show 100% download complete and then start offering the complete download to any new connections.

When you started running the downloader, you may have noticed some activity from the tracker (running in its DOS box). You would see a rather cryptic string containing a "hash_info", "peer_id" and other information. If you didn't see this, or if the downloader reported an error such as failure to connect to the tracker, you may need to go back a few steps. Remember, the .torrent file contains within it the url of the tracker (ie "http://smiler.myip.org:6969), so if your machine can't see this url (because of Port problems, or because of machine name problems), the downloader won't be able to see the tracker either.

Now all you need to do is advertise your .torrent file or page. http://wiki.etree.org has a taper-friendly links page, and most likely if you are interested in sharing files this way you're probably on a few trading lists anyway. So I guess you know where to advertise your page. My experience has been that some lists produce better responses than others - the most effective method has been posts made to the etree announce list.

Hopefully downloaders will then start to connect. You want them to stay connected even after their download has finished, so it's a good idea to give some information on your BitTorrent page about how to use the program effectively, and to ask people to kindly stay connected even when they get to 100%. Maybe when people have more experience and better understanding of BT, this will happen more frequently, but I am seeing a lot of times folks reaching 100% then disconnecting almost immediately. So long as there is at least one downloader at 100%, others will (eventually) get the complete fileset. How quickly will depend upon the upload offered by the "primary" downloader, and the number of connections. It saddens me to see 5 completed downloaders abandon their connections leaving 3 or 4 remaining downloaders served by just one completed downloader.

The BitTorrent tracker offers some feedback. If you connect to the tracker with your browser you get to see the "hash infos"; which are 20-character strings that only your computer can make sense of. As BitTorrent evolves there will be improved feedback from the tracker, but I hacked my tracker a little bit and I'm sure Bram will come up with something better before long. Check the "Current Activity" links on Smiler's BitTorrent page to see how I made it a little bit more useful, or check my BitTorrent tracker for the standard feedback.

 

 

 


Reply

Dooga
Hmm... you didn't copy this right? It's sort of a coicidence that http://smiler.no-ip.org/BT/BTtutorial.htm has the same tutorial. Please verify that you wrote this. Thank you!

Edit: I approved this post, because there is a possiblity that the URL owner is the same person. However, Please verify! To people who copy: We have ways to detecting copyright. Please limit your posts to only the ones you have authored. To author: You should remove this post if you have not written it.

Reply

OpaQue
POST COPIED!
YOU RECIEVE A PENALTY OF HOSTING CREDITS WORTH 44 DAYS!

A POST IS SAID TO BE COPIED IRRESPECTIVE OF THE OWNER OF THE POST OR ARTICLE. BECAUSE A POSTER GIVES A PART OF THE COPYRIGHT TO THE OTHER SITE WHEN HE POSTS.

NO FURTHER REASONS SHALL BE ENTERTAINED.

TOPIC CLOSED!

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. bittorrent tracker setting up - 6.09 hr back. (1)
  2. setting up torrent tracker - 9.00 hr back. (1)
  3. setup a torrent racker - 18.13 hr back. (1)
  4. setting up a torrent tracker - 23.90 hr back. (2)
  5. setup bittorrent tracker - 29.10 hr back. (1)
  6. bt-tracker - 29.74 hr back. (1)
  7. hopw to set up a torrent tracker - 46.54 hr back. (1)
  8. bt tracker - 56.69 hr back. (2)
  9. setup torrent tracker - 69.60 hr back. (1)
  10. bt trackers - 76.58 hr back. (1)
  11. dos commands for seeing ports - 89.38 hr back. (1)
  12. how to set up a torrent tracker - 26.71 hr back. (10)
  13. i want to set up local torrent tracker - 95.21 hr back. (1)
  14. torrent tracker source code for ipb - 96.74 hr back. (1)
Similar Topics

Keywords : set, bt, tracker, set, bittorrent, tracker

  1. Ipb Tracker
    (4)
  2. Message Tracker
    Not verifying read PM's (2)
    Just yesterday I noticed the message tracker in "my controls" is not verifying that messages have
    been read. Anyone else noticing this? This is the first I've seen of this. Is the area being
    upgraded or something?....
  3. What Bittorrent Downloader Do You Recommend
    (20)
    I have been using bitspirit and now azuresus, and i am looking for some other program. /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />....
  4. Encrypting Bittorrent To Take Out Traffic Shapers
    (0)
    I found this article the other day, which states that many ISP's are starting to adopt traffic
    shaping to limit their users from downloading and uploading anything from BT (or making it extremely
    slow to do so). In the article they point to Rogers, one of Canada's largest ISP's, which
    have lied about using it in the past. Shaw, and many providers in the UK have this traffic shaping
    feature as well, which ultimately makes anything very difficult to share.
    http://torrentfreak.com/encrypting-bittorrent-to-take-out-traffic-shapers/ As a 3d animation
    enthusias....
  5. Free Site Stats Tracker
    Anyone know aa good one? (10)
    Can someone reccomend me a good invisible but free stat track for my site? I don't know which
    one to choose, there are so many... I'm thinking about StatCounter or Adfreestats but
    I'm not sure which one. Or does anyone know a better one? Thanks....
  6. Free Lightweight Bittorrent Software (82kb)
    microtorrent (µtorrent) (1)
    Check out what I came across today: http://www.utorrent.com/ It's called µTorrent, and like
    the name, the download is ridiculously small: 82KB. BitTorrent is a file sharing network that's
    designed to off-load bandwidth if you're sharing large files like Linux ISOs. What it does is it
    allows peers to share a bit of the file, so that each person is holding a small piece. Then, it
    grabs all the pieces from the peers online and downloads them all to your computer. I may not have
    gotten this process correctly, so correct me if I'm wrong.....
  7. File-sharers Move Away From Bittorrent ..
    , Back to eDonkey (10)
    QUOTE File-sharers have moved away from the popular BitTorrent system following legal action,
    say experts. Instead they have moved to another network called eDonkey, showed a study by internet
    analysis firm CacheLogic. It found that eDonkey has become the dominant peer-to-peer file-sharing
    network in countries such as South Korea, Italy, Germany and Spain. The study seems to suggest that
    the legal action to stamp out file-sharing is meeting with limited success. BitTorrent alternatives
    The movie industry started targeting the operators of BitTorrent networks the....
  8. Run Bittorrent Under Fedora
    (1)
    i installed bittorrent with yum but im wondering how do i run the program i searched for it and
    nothing can be found plz help im a noob at linux....
  9. Bit Comet
    A nice BitTorrent App. (3)
    Here is a program that a lot of you might like go to http://www.bitcomet.com and dl it and install
    it go to the link Torrent Search in the favorites list and you can dl anything that u can that is up
    there now heres one bad thing about it its bit torrent files witch is P2P if any of you don't
    know what it is and it gets files from other ppl that have the same thing so i can take a long time
    to dl depending on how many files its sharing off of I tidied your post up a little bit such as
    making the link clickable, adding a topic description, and correcting several m....
  10. Banners And Tracker Error
    (4)
    hello and how are you evryone I dunno where to post this I have seen a banner error page cannot be
    displayed and also there is that tracker error there is no picture and also the website doesn't
    work once i click on it. /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> ....
  11. Free Web Tracker/hit Counter
    statcounter.com (10)
    Hi /cool.gif' border='0' style='vertical-align:middle' alt='cool.gif' /> If you are looking for
    a free counter/web tracker try statcounter.com . With just one account you can put counters on ALL
    your websites. You can use it for free for as long as you like. (when you get 9,000+ pageloads you
    will be asked to upgrade your account or remove the tracker-code from your site) Some features:
    Detailed breakdown of pageloads, unique, first-time and returning visitors Zoom in on your
    visitors' locations and watch in real-time as they navigate through your website....
  12. Bittorrent Client
    What is your favorite BT client? (90)
    I use BitTornado because it's very reliable for me, although at times, the GUI seems to freeze,
    and I get very mad when that happens because I leave the computer on for a long time, so when I get
    back, I expect a finished download. I've also tried BitComet. I don't know if this is me,
    but the torrent seems to take SO much longer to finish downloading than it does on BitTornado. If
    you've experienced this, post below. Shareaza is another client that I've tried, but it
    doesn't seem to handel torrents very well.....

    1. Looking for set, bt, tracker, set, bittorrent, tracker

Searching Video's for set, bt, tracker, set, bittorrent, tracker
advertisement



How To Set Up A Bt Tracker - How to set up a Bittorrent tracker



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE