Getting BitTorrent working mighty fine on Mac OS X by opening TCP ports

This is perhaps more for me than anyone else.

Often BitTorrent will run too slow for it to be working right. When you find this happening, it’s time to change the TCP port you’re using to move the data about. This is because, basically, your ISP is trying to shut it off (they probably know what you’re up to).

To re-energise your download speeds, you just need to poke a hole in your firewall by opening up a new TCP port.

Steps

  1. Go to Apple > System Preferences…
  2. Select Sharing
  3. Select the Firewall tab
  4. Select New…
  5. Enter the settings shown right at the bottom of the post, choosing a new, random port number around 40000 ish and far removed from your old one. TCP must be the same as UDP.
  6. Press OK, make sure the new hole is ticked and operational and exit System Preferences
  7. For clarity, disconnect, restart BitTorrent (entering the new TCP port you’re using in the preferences), reconnect and zoom away!
Settings

Yay for Internet!

mike 30th January 2006

This is also true of just plain BitTorrent use. By doing the same procedure on TCP ports 6881-6889, you often increase transmission speeds a lot.

On top of that, which is what your post points out, you can sometimes have ISPs or Organizations (school, work, hotels, etc) that block or throttle traffic on file-sharing ports. In this case, changing ports to a 40,00x port works just fine.

For real enterprises that use quality traffic shapers and firewalls, even port changing won’t work because their system look at the actual packet payload, not just the port number. To get around this… well, google for SSH and port forwarding.

Hope that helps.

Atpug Nura 14th March 2006

Very useful tip - used it in iinet in Australia and worked dramatically well. Cheers mate

Alexa 26th April 2006

I’ve set it up with ports 6881-6999, and yet my ports are registering as closed. Does it take a while to set in? Does it matter that I am using AirPort for internet? I’m so frustrated..

Lala 15th May 2006

Great stuff, thanks so much it helped wonders!

ian 1st July 2006

Ive tried this, found it interesting but when i set it up my download is still funny, although the upload rate did increase massively. My download speed goes from 1.5b/s to 3, then 4.5, 5, 6. then its drops back down (reversely) to zero. then its rises again at regular intervals, the whole up down thing lasts about 6 seconds, up and down constantly…what do i need to do.
the only thing that puzzles about this walkthrough is that i do not have TCP and UDP, i only have TCP. I also was confused by azureus as its prefs only have a port number in the “Incoming TCP listen port”. Any help is much appreciated.

chris 8th September 2006

Just a question: What is a good download speed on Bittorrent for u guys? Can´t seem to get it over 6kb/s wich is deadly slow compared to Limewire etc…

Chris T 15th October 2006

Hi. I am trying to get Azureus (bittorrent client) to work at my school, where I guess they block everything they can. Is there a way to make this work. I have tried many ports, none of which work.
Any suggestions welcomed!
thanks.

smart guy 11th May 2007

fucck u all

Rachel 30th June 2007

Hi, I’ve tried this, but don’t have a UDP box, does this matter?

Joel 3rd September 2007

THANK YOU. God, that helps alot.

Brien 3rd October 2007

I’m using Azerus at college, and it worked for about a week and then suddenly it stopped downloading a torrent (right at 95.3% too). So I tried your little trick here with high hopes, but to no avail. It just says my “port is probably closed.” I tried changing the port number around from 39000 to 40000 to 50000 to 65000 and various ports in between, but nothing. What’s the story here?

I’m on Adium: Brien Hopkins

Christian 7th December 2007

Port settings in Leopard has changed dramatically. My Azureus in Leopard has very poor download speeds. And it suggest to fix the ports. But how?

James 3rd February 2008

Unbelievable improvement! Thanks a lot!

Halcyon 8th February 2008

Hi as mentioned the port settings on leopard can’t be changed as described above. Any other way? Thanks!

Patrick 31st May 2008

Hey, I have tried downloading torrents on my Macbook, and no matter what I change the ports to, the downloads are ridiculously slow, like 6-20 KBs a second. Does anyone have any other solutions for increasing my download speed?

Fintan 31st May 2008

It does appear that Apple have removed the ability to do this from System Preferences in Leopard.

Perhaps there’s a command line alternative, or a third-party app to help accomplish this…

Rob Murray 28th October 2008

There doesn’t seem to be a “Firewall” tab when I click on the sharing tab in Apple System Preferences…what do I do as an alternative?

swami 4th November 2008

Thanks! Works Great!

Leave a Reply