# List all peers having a file

**URL:** <https://discuss.ipfs.tech/t/list-all-peers-having-a-file/8430>\
**Category:** Help\
**Created:** [June 16, 2020, 2:02pm UTC](https://discuss.ipfs.tech/t/list-all-peers-having-a-file/8430 "2020-06-16T14:02:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![manonthegithub](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@manonthegithub](https://discuss.ipfs.tech/u/manonthegithub)\
**Post date:** [June 16, 2020, 2:02pm UTC](https://discuss.ipfs.tech/t/list-all-peers-having-a-file/8430/1 "2020-06-16T14:02:09Z")

</div>

Hi! I’m new to ipfs. I need to somehow get details on which nodes are carrying the file. I need to get a list of all the nodes (or almost all the nodes), not just some part of them. If some of the nodes are offline its ok, my goal is to know who have downloaded the file. I have tried dht/findprovs, but I am not sure if it can return all of the nodes? It is also kinda slow, is that possible to make it faster maybe specifying some parameter (I suspect that it tries to check availability of the peers, which makes it slow)? Is that possible in ipfs?

Thanks for help!

---

<div class="post-metadata">

**Author:** ![ipfsme](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/ipfsme/32/3907_2.png) [@ipfsme](https://discuss.ipfs.tech/u/ipfsme)\
**Post date:** [June 20, 2020, 8:50pm UTC](https://discuss.ipfs.tech/t/list-all-peers-having-a-file/8430/2 "2020-06-20T20:50:33Z")

</div>

> [@manonthegithub](#):
>
> I need to get a list of all the nodes (or almost all the nodes), not just some part of them.

As far as I know, this is not really possible. The number of node “addressed” in IPFS space is way too large to search every possible node ID, even one had a few decades of time to do so…

The dht information is about as deep as it’s practical to search using your own local node. You could check:

> **[ipfs-search.com](https://ipfs-search.com/#/search)**
>
> Search for images, documents, video and music on the Interplanetary Filesystem.

…for whatever you are looking for… which may include a wider node selection.

---

<div class="post-metadata">

**Author:** ![manonthegithub](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@manonthegithub](https://discuss.ipfs.tech/u/manonthegithub)\
**Post date:** [June 20, 2020, 8:56pm UTC](https://discuss.ipfs.tech/t/list-all-peers-having-a-file/8430/3 "2020-06-20T20:56:42Z")

</div>

I am not looking for files. My goal is to understand how many people and **who** have downloaded the file I uploaded. I there a way to somehow obtain that information from ipfs (I have some ideas of how to do it, at least partly, outside of ipfs)?

---

<div class="post-metadata">

**Author:** ![Akita](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/akita/32/2650_2.png) [@Akita](https://discuss.ipfs.tech/u/Akita)\
**Post date:** [June 20, 2020, 10:03pm UTC](https://discuss.ipfs.tech/t/list-all-peers-having-a-file/8430/4 "2020-06-20T22:03:26Z")

</div>

The only way I see is repeatedly ask the DHT for providers of the multihash.  
It will be hard to see peers whose peerId are not between yours and the file multihash so you may want to manage several identities.

On the long run, IPFS will sooner or later adopt more privacy and it will be more and more difficult. But for now, that’s what I would do.

---

<div class="post-metadata">

**Author:** ![Akita](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/akita/32/2650_2.png) [@Akita](https://discuss.ipfs.tech/u/Akita)\
**Post date:** [June 20, 2020, 10:07pm UTC](https://discuss.ipfs.tech/t/list-all-peers-having-a-file/8430/5 "2020-06-20T22:07:17Z")

</div>

Also, if you’re doing this to estimate if the content is popular, you can run a bunch of findprov, and estimate how many hops you had to make before reaching a provider. If you want all their identities, there’s no cheap way of doing it I’m aware of.

---

<div class="post-metadata">

**Author:** ![manonthegithub](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@manonthegithub](https://discuss.ipfs.tech/u/manonthegithub)\
**Post date:** [June 20, 2020, 10:09pm UTC](https://discuss.ipfs.tech/t/list-all-peers-having-a-file/8430/6 "2020-06-20T22:09:14Z")

</div>

That is what I suspected, just had to verify 🙂
