How Torrents Find Unannounced Peers

An unannounced peer is a BitTorrent user participating in a swarm who has not registered their IP address and port with a centralized tracker. While traditional torrenting relies on trackers to introduce downloaders and uploaders, modern torrent clients employ decentralized discovery protocols to locate and connect with peers independently. This article explains what unannounced peers are and breaks down the three primary mechanisms used to discover them: Distributed Hash Tables (DHT), Peer Exchange (PEX), and Local Peer Discovery (LPD).

What Is an Unannounced Peer?

In the BitTorrent protocol, “announcing” refers to a client sending an HTTP or UDP request to a tracker to state that it is downloading or seeding a specific torrent. The tracker records the client’s network information and returns a list of other active peers.

An unannounced peer is actively downloading or sharing the files associated with a torrent’s info-hash, but never communicated with the tracker specified in the .torrent file. This occurs when: * The torrent is trackerless (magnet links). * The centralized tracker is offline or blocked. * The client has disabled tracker reporting. * The peer joined the swarm entirely through decentralized discovery methods.

How Clients Discover Unannounced Peers

Torrent clients use three distinct protocols to identify and connect to peers without querying a centralized tracker.

1. Distributed Hash Table (DHT)

The Distributed Hash Table (specifically the Kademlia-based Mainline DHT) turns participating torrent clients into a globally distributed database.

2. Peer Exchange (PEX)

Peer Exchange operates as a peer-to-peer gossip protocol defined in the BitTorrent extension protocol (BEP 11). Once a client connects to at least one peer in a swarm, PEX allows those peers to share their own lists of connected nodes.

3. Local Peer Discovery (LPD)

Local Peer Discovery (also known as Local Service Discovery or LSD) discovers peers on the same local area network (LAN) or internet service provider subnet.