Reference articles on history, science, culture and more
Encyclopedia

Local Peer Discovery

The Local Peer Discovery protocol, specified as BEP-14, is an extension to the BitTorrent file-distribution system. It is designed to support the discovery of local BitTorrent peers, aiming to minimize the traffic through the Internet service provider's (ISP) channel and maximize use of higher-bandwidth local area networks (LANs).

Local Peer Discovery is implemented with HTTP-like messages on User Datagram Protocol (UDP) multicast group 239.192.152.143:6771 (IPv4) or ff15::efc0:988f (IPv6) which are administratively scoped multicast addresses. It's similar to Simple Service Discovery Protocol but sends BT-SEARCH instead of M-SEARCH:

BT-SEARCH * HTTP/1.1\r\n Host: <host>\r\n Port: <port>\r\n Infohash: <ihash>\r\n cookie: <cookie (optional)>\r\n \r\n \r\n


Since implementation is simple, Local Peer Discovery is implemented in several clients (μTorrent, BitTorrent/Mainline, MonoTorrent, libtorrent and its derivatives, Transmission, aria2). An alternative multicast peer discovery protocol based on ZeroConf is published as BEP 26 Zeroconf Peer Advertising and Discovery, but is not widely adopted since it is considered too complex in comparison.

Watch videos about Local Peer DiscoveryExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Local Peer Discovery, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.