# Connect to peers





Recipes for finding other peers and opening direct, end-to-end-encrypted connections.

<Cards>
  <Card href="/p2p/how-to/connect-to-peers/connect-two-peers-by-key-with-hyperdht" title="Connect two peers by key with HyperDHT" description="Connect client and server peers by public key using HyperDHT hole punching." />

  <Card href="/p2p/how-to/connect-to-peers/connect-to-many-peers-by-topic-with-hyperswarm" title="Connect to many peers by topic with Hyperswarm" description="Discover peers on a topic and keep connections alive with Hyperswarm." />

  <Card href="/p2p/how-to/connect-to-peers/host-multiple-rooms-in-one-chat-app" title="Host multiple rooms in one chat app" description="Extend the pear-chat scaffold from a single room to an account that owns and switches between many rooms." />

  <Card href="/p2p/how-to/connect-to-peers/relay-connections-through-a-blind-relay" title="Relay connections through a blind relay" description="Run a blind relay and point peers at it with --relay, for networks where hole punching cannot connect." />
</Cards>
