How to Open Magnet Link In Browser

magnet-linksIf you are a frequent torrent user, you will come across magnet link. Magnet link has been around for quite some time, but it is only recently when the Pirate Bay confirmed that it would switch to DHT, PEX and magnet links that makes people start to wonder what magnet link is all about. You can read about the full explanation of DHT, PEX and Magnet Links here. In short, it is a method for you to download files without having to first download the .torrent file. You can start the download with just a link (or URL).

Magnet link makes it very convenient for all of us to download file. However, when you click on the magnet link in the browser, you will probably see the error message below.

magnet-links-not-supported

So how can we open magnet links in the browser in various OS?

Note: Not all Bit-torrent clients support magnet links. Vuze, uTorrent and Transmission are several clients that support magnet links.

In Linux (Gnome)

If you are using Ubuntu Karmic, the default transmission does not support magnet link. You have to upgrade to the latest version (1.9 as of this post).

sudo add-apt-repository ppa:transmissionbt/ppa
sudo apt-get update && sudo apt-get upgrade

Alternatively, you can also install Vuze

sudo apt-get install vuze

Next, we are going to add an entry to your gonf. In your terminal:

gconftool-2 -t string -s /desktop/gnome/url-handlers/magnet/command "/usr/bin/transmission %s"
gconftool-2 -s /desktop/gnome/url-handlers/magnet/needs_terminal false -t bool
gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/enabled true

If you are using Vuze, change the /usr/bin/transmission to the filepath of the Vuze application (usually is /usr/bin/vuze).

That’s it.

Note: If you are using Swiftfox or Opera, the magnet link will not work with the above trick.

In Windows

Download and install uTorrent, Vuze or Transmission.

Open NotePad and type the following in it:

REGEDIT4
[HKEY_CLASSES_ROOTmagnet]
@="URL:magnet Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOTmagnetshell]
[HKEY_CLASSES_ROOTmagnetshellopen]
[HKEY_CLASSES_ROOTfooshellopencommand]
@=""C:\Program Files\uTorrent\uTorrent.exe" "%1""

If you are using Bit-torrent client other than uTorrent, replace the last line C:\Program Files\uTorrent\uTorrent.exe with the filepath of your Bit torrent application.

Save the file as “magnet.reg“, then double-click it to insert into the Windows registry. You will see some warning windows as shown below.

magnet-links-windows

Click Yes to proceed.

Once the import is completed, you can click on the magnet link in your browser and then select the application that you want to use.

magnet-links-windows1

In Mac

There is no configuration required in Mac. If you install Transmission, Vuze or uTorrent, it will automatically add the protocol handler to the system. You can simply click on the magnet link and choose your application from the popup window.

magnet-links-mac



Print this pageSave as PDF

Damien Oh is the owner and chief editor of Make Tech Easier
  • http://wmafendi.com wmafendi

    Thanks for your information. It's very useful. I don't know what i'm doing is right or wrong. I'm using uTorrent and I just click “Add Torrent from URL” from File menu. And the paste the magnet link on the box appeared. It's starts download. :)

  • http://maketecheasier.com/ Damien Oh

    Yes. You are doing it correctly. Instead of copy/paste, the above method allows you to open the link directly from your browser.

  • Mark G. Jones

    Interesting.

  • DavidT

    Does it accept BitComet

  • http://maketecheasier.com/ Damien Oh

    If bitcomet supports magnet links, it should work as well.

  • Amir Hussain Syed

    this works… thanks

  • John

    Okay, but for Mac, how do you change the application to another one?

  • Pingback: Tweak Opera to Befriend Transmission | The InkWells

  • Anonymous

    I have problem. I have win7, chrome and utorrent.
    I make this registry file, added to registry, reebot and still i cant open magnet links. I try in FF too, but I see that same error like on top the article. Any ideas?

    However my friend, who use that same aplications haven’t problem and it works all the time.

  • Anonymous

    I have forgot that i use portable utorrent. I installed it now and it works ;)

  • paddy

    i did what the instructions said correctly, but i still cant open the magnet link, please help, i have windows 7 if that makes any difference, and its utorrent im trying to get the magnet links for, the magnet links used to work for frostwire but i deleted taht and got utorrent.

    • mu3g

      Make sure your last line is
      C:Program Files (x86)uTorrentuTorrent.exe

  • Bmanlanc

    No, not working with Windows XP SP3 and Firefox 6.0

  • Kostas

    I have windows 7 and utorrent i did exactly what you sayd but it still doesnt work… can you plz help me?

  • Dkdex

    thanks works good in chrome