Node cannot dial to another using peer ID in a network connected via a relay. #2815
Unanswered
SpringMagnolia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am learning from the libp2p examples and have been experimenting on my own.
I started a relay server in a Node.js environment, along with two regular nodes, configuring the address of the relay server as the bootstrap address.
The relay server can discover both nodes, but Node 1 cannot directly dial Node 2 using its peer ID, even though I have configured DHT as well.
I know that dialing via address works, but why can't I dial using peer ID?
Please let me know what I should do.
Here is the code for the relay server:
Here is the code for Node 1:
Here is the code for Node 2:
Beta Was this translation helpful? Give feedback.
All reactions