How to resolve full multiaddres from a multihash?

Another newbie question:

  • given a node’s multihash value, how to resolve the full multiaddress so I can can connect to?
    (my assumption is that we have to have to have the full address in order to connect to the remote node right ?)

For example, in order to connect to the node, I need to use:
ipfs swarm connect /ip4/

So if I only know the multihash value, how do I get the full address ?

“ipfs name resolve” only returns “/ipfs/…”, still not the full address right ?


“ipfs dht findpeer” is the command you are looking for.

yes, it works, thank you very much !