Is there any way where i can get IP address of the peer from its peer ID.
@vasa @raul
I haven’t tried anything like this before. I don’t know of any API endpoints that do something like this.
Can you tell me what are you trying to do? I may have some hacky ideas for your use-case.
I have few peers connected to my libp2p lost ,I must get the ip addresses of these peers so that i can add them to RAFT Cluster by sending a changeconfig request by specifying ip address and raft port as parameters
@vasa
I figured out a way by calling remoteMultiAddrs (https://godoc.org/github.com/libp2p/go-libp2p-core/network#ConnMultiaddrs) but I want to know if there are any other approches available
Thanks
1 Like
You can probably use the DHT if you’re not connected to the peer: https://godoc.org/github.com/libp2p/go-libp2p-kad-dht#IpfsDHT.FindPeer
1 Like