libjuice icon indicating copy to clipboard operation
libjuice copied to clipboard

How does the stun/trun server get the candidates of the peer

Open fengshangren opened this issue 1 year ago • 4 comments

How does the stun/trun server get the candidates of the peer

fengshangren avatar Sep 09 '22 03:09 fengshangren

What do you mean?

paullouisageneau avatar Sep 09 '22 13:09 paullouisageneau

For example, how to exchange the sdp between the A side and the B side? It seems that libjuice itself can't do it.

fengshangren avatar Sep 09 '22 13:09 fengshangren

The STUN/TURN are used by the ICE protocol to gather local candidates, then it's up to the user application to transmit the description and candidates to the other side. This is typically done with a signaling server like in the case of SIP or WebRTC.

paullouisageneau avatar Sep 09 '22 14:09 paullouisageneau

Can you talk about the principle of libjuice's TURN? How does he forward it?

fengshangren avatar Sep 09 '22 14:09 fengshangren

TURN servers are not specific to libjuice. They allow to allocate a UDP port an the server to relay the UDP traffic if the network is blocked on the client, typically by an endpoint-dependent (aka symmetric) NAT that can't be traversed.

paullouisageneau avatar Sep 23 '22 09:09 paullouisageneau

I'm closing this as it's not an issue.

paullouisageneau avatar Sep 25 '22 07:09 paullouisageneau