How to view the IP addresses hosting a particular file?

Is there a function to see the IP addresses which are hosting a particular file?

1 Like

You can do that with the dht.findprovs API method. This is how you find peers with the content you want, so you can request the content from them.

1 Like

With dht.findprovs you can find the ID of the peers that are saying that they have the specific content. Then you can use that ID to get the addresses that the peer is listening on. One example of this:

$ ipfs dht findprovs QmUvGoyv8hBprTqjFnhD5m4HGkcxqS4FoNteKEbYmyLj9n

$ ipfs dht findpeer QmSoLueR4xBeUbY9WZ9xGUUxunbKWcrNFTDAadQJmocnWm 

Hi all,

Some help here please.

Is the method still working. I have no results while using my own: QmaMz5QmsAauRrM9agJtWURfa19bAihDaCyy2cghNknS4M

When trying findprovs or findpeers i get: error routin not found.

But i know it is running, so any ideas?

Same result with ipfs 0.8 dht findprovs returns nothing while get returns cached Qm…S4M from my node.

Hi all, i really could use some help!!!

Daemon is running.
ipfs dht findprovs works as well
ipfs dht findpeer keeps returning: Error: routing: not found