# IPFS Private Network Peer discovery

**URL:** <https://discuss.ipfs.tech/t/ipfs-private-network-peer-discovery/8318>\
**Category:** Help\
**Created:** [June 8, 2020, 4:06am UTC](https://discuss.ipfs.tech/t/ipfs-private-network-peer-discovery/8318 "2020-06-08T04:06:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashritha-Kondapally](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/ashritha-kondapally/32/2661_2.png) [@Ashritha-Kondapally](https://discuss.ipfs.tech/u/Ashritha-Kondapally)\
**Post date:** [June 8, 2020, 4:06am UTC](https://discuss.ipfs.tech/t/ipfs-private-network-peer-discovery/8318/1 "2020-06-08T04:06:27Z")

</div>

How can the peers with the same swarm key discover each other? Will the bootstrap node filter the peers based on the swarm key? If not, how exactly the peers can differentiate between the node with swarm key and without swarm key while discovering?

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [June 8, 2020, 6:57pm UTC](https://discuss.ipfs.tech/t/ipfs-private-network-peer-discovery/8318/2 "2020-06-08T18:57:42Z")

</div>

Peers using a swarm key will only be able to connect to other peers using that same swarm key. To setup a private network, you’ll have configure your nodes to bootstrap off of a node in the private network.

```bash
> ipfs bootstrap add /address/of/your/bootstrap/node

```

---

<div class="post-metadata">

**Author:** ![Ashritha-Kondapally](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/ashritha-kondapally/32/2661_2.png) [@Ashritha-Kondapally](https://discuss.ipfs.tech/u/Ashritha-Kondapally)\
**Post date:** [June 9, 2020, 4:49am UTC](https://discuss.ipfs.tech/t/ipfs-private-network-peer-discovery/8318/3 "2020-06-09T04:49:29Z")

</div>

What exactly the swarm key does in Private networks?  
and also, How does a peer know about the presence of swarm key in other peer which is trying to connect?

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [June 18, 2020, 4:37pm UTC](https://discuss.ipfs.tech/t/ipfs-private-network-peer-discovery/8318/4 "2020-06-18T16:37:44Z")

</div>

> What exactly the swarm key does in Private networks?

All traffic is symmetrically encrypted with the swarm key.

> and also, How does a peer know about the presence of swarm key in other peer which is trying to connect?

Both sides will see random garbage when they try to connect and they’ll disconnect.
