Search code examples
network-programmingp2pbittorrentfile-sharingdht

What's the difference between PEX and DHT in the BitTorrent protocol?


If I understand correctly, the purpose of both PEX and DHT is to find other peers in the swarm. So why are both needed?

Thank you


Solution

  • Look at the PEX BEP, I think the opening paragraph explains the differences well enough.