Local Peer Discovery Multicast Address for BitTorrent
This article explains the multicast IP addresses and port configurations utilized by the Local Peer Discovery (LPD) protocol in BitTorrent clients. LPD—also frequently referred to as Local Service Discovery (LSD)—enables torrent clients residing on the same local area network (LAN) to detect one another and transfer data at local speeds without relying on external trackers or Internet bandwidth. The sections below outline the exact multicast addresses, port numbers, and core mechanics governing this protocol.
Multicast Addresses and Ports
BitTorrent clients use designated UDP multicast groups to broadcast and listen for local peers. The standardized addresses and port configurations are:
- IPv4 Multicast Address:
239.192.152.143 - IPv6 Multicast Address (Site-Local Scope):
[ff15::efc0:988f] - IPv6 Multicast Address (Organization-Local Scope):
[ff25::efc0:988f] - Standard UDP Port:
6771
The IPv4 address falls within the Organization-Local Scope
(239.192.0.0/14), which ensures that these multicast
packets are confined to private networks and not routed across the
public Internet.
How Local Peer Discovery Works
When a BitTorrent client has LPD enabled and begins downloading or seeding a torrent, it periodically broadcasts a multicast discovery message:
- Multicast Announcement: The client sends an
HTTP-like
BT-SEARCHpayload over UDP to port6771at the designated multicast address. - Payload Details: The announcement message includes the info-hash of the active torrent, the client’s listening port, and protocol headers.
- Neighbor Detection: Any other BitTorrent client listening on the same subnet receives the multicast packet. If the listening client is participating in the swarm for that same info-hash, it initiates a direct peer connection.
- Data Transfer: After establishing a connection, peers transfer blocks directly across the local switch or router, utilizing standard peer-to-peer protocols (TCP or uTP) at full local network bandwidth.
Key Benefits of Local Peer Discovery
- High-Speed Transfers: Enables peers on the same LAN or corporate network to share files at local interface speeds (such as 1 Gbps or 10 Gbps) rather than being limited by ISP upload and download caps.
- Reduced WAN Bandwidth: Limits duplicate downloads of the same content across external network boundaries.
- Tracker Independence: Operates autonomously without requiring updates from external trackers or the public Distributed Hash Table (DHT) to pair local systems.