Jump to content

How to Shut Down uTorrent Automatically When Your VPN Disconnects


Recommended Posts


With growing concerns surrounding online privacy, millions of BitTorrent users are using VPN services to hide their sharing activity. This works well, until the VPN connection breaks exposing one’s personal IP-address. Luckily there are ways to prevent this from happening, including the free and open source VPNWatcher application that allows users to shut down their client when the VPN connection is lost.

BitTorrent is a great technology to share large files with a massive audience, but it’s also one of the least private tools to communicate on the Internet.

Everything shared online via BitTorrent is visible to the public and often put in a database by one of the many monitoring companies that map downloading habits.

To protect themselves against this unwanted surveillance as well as other evils, many BitTorrent users have signed up for anonymizing services such as VPNs.

A wise choice, but unfortunately this doesn’t guarantee one’s privacy. If for some reason the connection with the VPN is lost, BitTorrent downloads will simply continue while broadcasting one’s residential IP-address.

Thus far Vuze is the only BitTorrent client that has a “connect through VPN only” option built-in, but for those who use uTorrent or other clients there’s now an open source application called VPNWatcher that does the same.

The Windows application was released a short while ago by Freddi, a 32-year-old coder from Germany who currently works as a Java developer in the tourism industry. Freddi recently switched from a proxy service to a VPN, bringing up the privacy challenge we outlined above.

“I realized that from now on I would have to be more careful using uTorrent. Since I do not have the socks5 proxy settings configured any longer, uTorrent would continue to run whether I’m connected to my VPN or not,” Freddi explains to TorrentFreak.

The software developer searched for an application to shut uTorrent down when the VPN disconnects but was unable to find one that matches his needs. The existing options were often too complicated or charged users for access, and none of them was open source. So Freddi decided to code his own solution.

“The main reason to code VPNWatcher was that the other programs I found are closed source, and I’m just an open source guy, especially when it has anything to do with privacy and security,” Freddi says.

After a few days of work he had a workable solution, a small piece of software that will shut down any application when a VPN connection is lost.

VPN Watcher


VPNWatcher is pretty straightforward. It monitors whether a VPN connection is active, and when it’s not it shuts down uTorrent or any other application it is configured to kill.

When users first start the application they can pick the network interface that matches the VPN (it appears when the VPN connects) and list the applications it has to shut down. The settings can then be saved and the user has the option to run VPNWatcher minimized.

TorrentFreak tested VPNWatcher and it works as advertised and was setup in just a few seconds. On PPTP connections users will have to tick the “strict mode” box – this was not needed with OpenVPN but people are encouraged to test this themselves.

VPNWatcher is open source and the complete Visual Studio 2010 project is included in the download, as well as a readme with frequently asked questions. The latest version can be downloaded from Freddi’s website and a copy of version 1.1 is available here.

view.gifView: Original Article

Link to comment
Share on other sites

  • Replies 2
  • Views 1.5k
  • Created
  • Last Reply

A few months ago I thought about using the above solutions but thought it could probably also be done using my Comodo firewall. I have some custom rules in Comodo that blocks any IP incoming/outgoing to my Bittorrent client when my Network Zone is my Local Area Network #1. Needless to say my Bittorent client will not work (send/receive any IP connections) without an OpenVPN connection. Unlike the solutions above it does not shutdown the torrent client but will block any incoming/outgoing IP to the Bittorrent client when the VPN connection doen't exist or terminates. I use OpenVPN client to connect to my VPN provider and used "legal torrents" to test and fine tune this solution until I was sure it worked.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...