Skip to content

How to properly combine NAT traversal with peer discovery? #3673

Closed Answered by dariusc93
Wiezzel asked this question in Q&A
Discussion options

You must be logged in to vote
1. Do I miss any behaviour in the list above?

I would also suggest Ping behaviour too otherwise you may timeout get timeout or disconnection sometime after the connection. May also suggest AutoNat to determine the peer nat status too.

2. What is the proper sequence of actions to execute on node startup? I mean like 'call method x of behaviour Y', 'listen for event Z', etc. I would like to make sure here that a newly started node is properly registered with the relay server and it's relayed address is discoverable by others.

The way I do it is i would make sure the relay server is connected to and tracking the ConnectionId (you dont really have to do this though), and possibly wait for

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Wiezzel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants