Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use STUN server to speed up the external socket address discovery #23

Closed
carver opened this issue May 27, 2021 · 0 comments · Fixed by #26
Closed

Use STUN server to speed up the external socket address discovery #23

carver opened this issue May 27, 2021 · 0 comments · Fixed by #26
Assignees

Comments

@carver
Copy link
Collaborator

carver commented May 27, 2021

Add a client like stunclient to trin, and run rustun server with something like:

cargo run --release --example binding_srv

On launch, we can check our external address to create an ideal ENR much faster than waiting for a bunch of independent PONGs to come in. (It also simplifies bootstrapping, where we launch new peers and connect them to each other)

@carver carver self-assigned this May 27, 2021
@carver carver closed this as completed in #26 Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant