# How find ip in ipfs

**URL:** <https://discuss.ipfs.tech/t/how-find-ip-in-ipfs/10896>\
**Category:** Help\
**Tags:** go-ipfs\
**Created:** [April 12, 2021, 6:07pm UTC](https://discuss.ipfs.tech/t/how-find-ip-in-ipfs/10896 "2021-04-12T18:07:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![roozeelena](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@roozeelena](https://discuss.ipfs.tech/u/roozeelena)\
**Post date:** [April 12, 2021, 6:07pm UTC](https://discuss.ipfs.tech/t/how-find-ip-in-ipfs/10896/1 "2021-04-12T18:07:28Z")

</div>

Hello

I wanted to ask how it is possible for the address of the hash file to be censored by the government?  
For example, is there a way to find the IP address of a file hash like QmQmgCHB5wd1LCRDCYXW4VPvSmsUDhYfgGxerpre6xWz8v? And become a censor?

Thankful

---

<div class="post-metadata">

**Author:** ![Discordian](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/discordian/32/4692_2.png) [@Discordian](https://discuss.ipfs.tech/u/Discordian)\
**Post date:** [April 12, 2021, 6:18pm UTC](https://discuss.ipfs.tech/t/how-find-ip-in-ipfs/10896/2 "2021-04-12T18:18:40Z")

</div>

If we’re talking about a single peer, yes the IP can be found out. For example if a file was searched via:

```auto
ipfs dht findprovs QmQmgCHB5wd1LCRDCYXW4VPvSmsUDhYfgGxerpre6xWz8v

```

The returned peerIDs can be looked up via `ipfs dht findpeer <peerID>`. However with the nature of IPFS, many people could be providing that file, just by accessing it they may be rehosting it in their cache temporarily.

If you’d like to completely hide your IP address, and share data, you can use IPFS behind something like Tor, I2P, or a VPN.

---

<div class="post-metadata">

**Author:** ![roozeelena](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@roozeelena](https://discuss.ipfs.tech/u/roozeelena)\
**Post date:** [April 13, 2021, 3:55am UTC](https://discuss.ipfs.tech/t/how-find-ip-in-ipfs/10896/3 "2021-04-13T03:55:46Z")

</div>

Thankful  
Is there a way to do this using tor?

---

<div class="post-metadata">

**Author:** ![Discordian](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/discordian/32/4692_2.png) [@Discordian](https://discuss.ipfs.tech/u/Discordian)\
**Post date:** [April 13, 2021, 11:16am UTC](https://discuss.ipfs.tech/t/how-find-ip-in-ipfs/10896/4 "2021-04-13T11:16:35Z")

</div>

It looks like some work’s being done to have IPFS function natively with Tor, relevant links:

- [Lesson: Run IPFS over Tor transport (experimental) - IPFS Primer](https://dweb-primer.ipfs.io/avenues-for-access/tor-transport)
- [Lesson: Access IPFS content through Tor gateways (experimental) - IPFS Primer](https://dweb-primer.ipfs.io/avenues-for-access/tor-gateways)

---

<div class="post-metadata">

**Author:** ![roozeelena](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@roozeelena](https://discuss.ipfs.tech/u/roozeelena)\
**Post date:** [April 14, 2021, 12:39pm UTC](https://discuss.ipfs.tech/t/how-find-ip-in-ipfs/10896/5 "2021-04-14T12:39:59Z")

</div>

I uploaded two files for example in slate.host but after ipfs dht findprovs no ID is displayed!

```
ipfs dht findprovs bafkreiguedvhhzhfsfwusgdhtqq6ydncwaqzuzlr4uiedbxnzyi65oibvi

ipfs dht findprovs bafkreiary3mvopcdyfdwguz2jqhpvoiegrtcjzduhar4eltmk3kyvkihwm
```

---

<div class="post-metadata">

**Author:** ![Discordian](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/discordian/32/4692_2.png) [@Discordian](https://discuss.ipfs.tech/u/Discordian)\
**Post date:** [April 14, 2021, 1:10pm UTC](https://discuss.ipfs.tech/t/how-find-ip-in-ipfs/10896/6 "2021-04-14T13:10:36Z")

</div>

I run into that a lot actually. I can retrieve a file, but yet it doesn’t show up in `findprovs` for some reason. I’ll ask about this, and get back to you (or maybe someone else will 🙂).

---

<div class="post-metadata">

**Author:** ![adin](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/adin/32/2679_2.png) [@adin](https://discuss.ipfs.tech/u/adin)\
**Post date:** [May 13, 2021, 2:22am UTC](https://discuss.ipfs.tech/t/how-find-ip-in-ipfs/10896/7 "2021-05-13T02:22:02Z")

</div>

It turns out that using a DHT (whether the IPFS Public DHT, some local one, one using an alternative networking stack like Yggdrasil, etc.) is just one of the ways a node might find content.

Another way that go-ipfs nodes find content is by just asking the nodes they’re already connected to if they happen to have it. This mechanism itself leads to a few outcomes:

1. If you’ve been downloading some data from node A and then they have content they haven’t put in the DHT yet since their provide queue is backed up (or even if they have turned off their advertising/providing system entirely) you’ll still be able to find and fetch the data from them
2. You might “accidentally” find a node that has the content you’re looking for just by your DHT client trying to keep its routing tables fresh. Similar, things could happen if you were using PubSub. If your node or the one with the content have high connection limits the chances of finding someone who happens to have your content by accident increase.
3. People can (and some do) build alternative systems outside of go-ipfs for finding content and you’ll fetch it all the same. For example if I learn that Node A has some data from some forum, shared database, pubsub channel, etc. I can just do `ipfs swarm connect <node A address>` and `ipfs pin add <data CID>` and my node will download the data anyway.
