Skip to content

What is the best way to establish a connection to a node if I only know the PeerId? #2025

Closed Answered by mxinden
thomaseizinger asked this question in Q&A
Discussion options

You must be logged in to vote

I presume this is because it is actually the IPFS DHT (/ipfs/kad/1.0.0) that we are connecting to.

Correct.

Can I somehow avoid all these nodes connecting to me?

No, you can't, unless you spoof your address.

know that I can configure Kademlia to use a custom protocol string but I assume once I do that, I can no longer use the official libp2p bootstrap nodes because those will not support the custom protocol and hence my other nodes cannot discover the first one.

Correct.

Do the libp2p bootstrap nodes implement the circuit relay protocol?

Using libp2p-lookup it seems like they do:

$ libp2p-lookup --network ipfs --peer-id QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
Lookup for pee…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@thomaseizinger
Comment options

@mxinden
Comment options

Answer selected by thomaseizinger
Comment options

You must be logged in to vote
1 reply
@mxinden
Comment options

Comment options

You must be logged in to vote
1 reply
@thomaseizinger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants