MOHAMMAD RASIM
MOHAMMAD RASIM

Reputation: 405

In ut_holepunch how can a relaying peer be connected at all to the target peer?

In the context of liubtorrent's ut_holepunch lets assume that:

bep0055 states this:

The initiating peer sends a rendezvous message to the relaying peer, containing the endpoint (IP address and port) of the target peer. If the relaying peer is connected to the target peer, and the target peer supports this extension, the relaying peer sends a connect message to both the initiating peer and the target peer, each containing the endpoint of the other. Upon receiving the connect message, each peer initiates a uTP [2] connection to the other peer.

so when the initiating peer sends a rendezvous message to some relaying peer then the relaying peer has to be connected to the target peer for it to work, but if the tracker has the wrong target peer port, then no relaying peer will be connected at all to that peer

Upvotes: 0

Views: 133

Answers (1)

the8472
the8472

Reputation: 43052

You should send the message to a relaying peer that already is connected to the target peer. Which one fits can be figured out by searching through the peer lists from PEX (BEP 11)

A tracker isn't involved in the process.

Upvotes: -1

Related Questions