Networking – If I download torrents while using a VPN, how do trackers know the real IP

bittorrentipnetworkingprivacyvpn

From my understanding this is how trackers work:

  • I want a file. My BitTorrent client tells the trackers I want that file
  • Other peers who also want that file do the same thing.
  • The tracker connects me to those peers and/or connects those peers to me and we all download the file together.

However, if I am using a VPN how do they connect to me? I tested the VPN I am using with https://ipleak.net/ and http://ipmagnet.services.cbcdn.com and it always shows my VPN's IP. How do the peers connect to me if they don't know my real IP?

EDIT: Downvoter, care to explain? I'm open to constructive criticism.

Best Answer

The peers don't need to know your real IP, you are giving them a way to contact you by simply contacting them yourself.

Even if the tracker shares an unreachable IP (your VPN) and other peers fail to connect, directly at least, you make yourself reachable by contacting those peers yourself.

You may be blocking inbound requests from unknown hosts, but by contacting a peer and requesting data from it yourself you are initiating a two way data connection that they can use to not only send data, but to request it as well.

The VPN is probably doing exactly what you expect, blocking unknown host connections, but once you contact someone through it you have effectively established a two way pipe between you and a peer. Whenever your software gets an updated list of peers and contacts new peers then you will get new data flowing outwards as well as inwards.

Most home router firewalls (with UPNP disabled) will automatically block incoming connections as well which creates this same problem of peers not being able to connect to you. Once you start connecting to them (per the list supplied by your tracker) then you are effectively poking very specific holes in your firewall for communication to happen to (and from) very specific places. The VPN is essentially a remote firewall from this perspective.

Related Question