There are two very similar questions here, but both haven't been answered:
rfc5766-turn-server as TURN and STUN for webrtc application question 1. says "with rfc5766-turn-server is enough to act as a TURN and also STUN server or do I also need to run a stun server".
missing relay candidates from TURN server speak about missing relay candidates, the effect I am seeing when making only a turn
request.
We have coturn
configured with turns
and use-auth-secret
and use https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ for testing.
- When I make a stun request
stun:hostname:5349
without password I see thesrflx
candidate (my external IP). - When I make a turn request
turns:hostname:5349[username:password]
I see therelay
candidate (the TURN server's public address).
This looks good, but do I need to make 2 requests to the same server? Shouldn't turn
include stun
and give me srflx
and relay
candidates?
- Can I configure
coturn
to return both in a single request? - Or will the client have to make both requests? Is so, will all browsers do this correctly when using WebRTC?