Simple File Sharing Using BitTorrent

The other day, I asked a friend for some pictures of a concert and wedding that we both attended.  Normally, for smaller files, he’d just send me what I wanted through Skype.  However, as anyone who uses Skype will tell you, peer-to-peer transfer speed in the program is abysmal.  Not wanting to set him up a FTP account to my website, I suggested that we make the transfer using BitTorrent.  Assuming that you are using uTorrent and have the appropriate exceptions already declared in your firewall, here are the steps that you can take to share files between you and your friends:

  1. Figure out your Internet IP address.  If you don’t know what yours currently is, try http://whatismyip.com/.
  2. Figure out what port uTorrent is using.  Your current port can be found in the Options –> Speed Guide menu.
  3. In uTorrent, go to File –> Create New Torrent
  4. Select the file or folder that you would like to share
  5. In the trackers section, add the following:
    http://your_ip_address:port/announce
    http://localhost:port/announce
  6. Under “Other” select “Start Seeding”
  7. Click the “Create and save as…” button.
  8. Save the torrent file to your disk
  9. Send the torrent file to your friend
  10. Have your friend open the torrent
  11. Enjoy!

Some of you may be asking why we added the local machine (localhost) as a tracker in step #5.  Some routers act goofy and don’t forward data properly when you attempt to access the router’s Internet address from the local network.  Because of this, your friend will be able to connect to your machine, but you won’t!  In other words, “localhost” is for you and your Internet IP address is for your friends. 

As an aside, we found that sharing a folder transferred significantly faster than the same folder compressed into a zip file.  Sharing a zip file, we achieved a download rate of approximately 10 kbps.  With the folder, my friend and I were able to achieve a sustained download rate of approximately 60 kbps.  Not too shabby!

–Adam

Which Version of Java: 32-bit or 64-bit?

Occasionally, I pretend to be a Python developer.  Thus far, my IDE of choice has been PyDev + Eclipse.  Recently, I did a few minor upgrades to my development box that allowed my to upgrade from Windows XP to Windows Vista 64.  Before I could begin using Eclipse, I needed to install the latest version of the JRE.  Since I prefer to download native 64-bit applications, I selected the 64-bit version of Java.  Now, I’m good to go, right?  Wrong.

Unlike the 64-bit version of .NET, the 64-bit version of Java apparently requires developers to create special 64-bit binary versions of their code.  However, in looking at the Eclipse download page, you’d never know that you needed a special 64-bit version (for Windows).  Only after a significant amount of treasure hunting did I find the location of the 64-bit version, found here

To sum things up, you’re better of downloading the 32-bit version of Java as the majority of applications that you’re going to want to run will only work with the 32-bit version of the JRE. 

–Adam