Skip to content

holepunch用法提议 #2817

Answered by Stebalien
wulalawulala asked this question in Q&A
May 31, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Unless I'm misunderstanding your question, that's how it works.

  1. Peer A connects to peer B over /p2p-circuit.
  2. Peer B tries to directly connect back to peer A.
  3. If that fails, peer B uses the DCUtR protocol, attempting to create a direct connection.

However note, this has only been implemented for QUIC (UDP) at the moment, as TCP-based hole-punching is significantly more complex.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by MarcoPolo
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
Converted from issue

This discussion was converted from issue #2815 on June 02, 2024 23:43.