Actually It's fairly simple.
When you load a torrent file into your client it uses information inside of that file to connect to one or more trackers. Trackers are servers that keep track of who is downloading what torrent. The tracker(s) will tell your