Skip to content

Send stun servers to clients - #69

Merged
davidzhao merged 2 commits into
masterfrom
enable-stun
Jul 26, 2021
Merged

davidzhao merged 2 commits into
masterfrom
enable-stun

Conversation

@davidzhao

Copy link
Copy Markdown
Member

Flutter WebRTC stack requires the presence of STUN servers. For clients that are behind NATs, using STUN would also improve connectivity.

@davidzhao
davidzhao requested a review from frostbyte73 July 25, 2021 04:55
@hn8

hn8 commented Jul 25, 2021 •

Copy link
Copy Markdown
Contributor

@davidzhao If TURN.Enabled && TURN.UDPPort > 0, maybe skip Google STUN (weird UDP port)? It also functions as STUN first and fallback to TURN. Is Flutter WebRTC ok with only "turn:" server? Or maybe just leave to config, no need to check this logic.

@davidzhao

Copy link
Copy Markdown
Member Author

That's a good point, if there's TURN/UDP, then we should definitely prefer that. I'll update.

@davidzhao

Copy link
Copy Markdown
Member Author

If a user has specified their own STUN servers, we should respect that. However, if TURN/UDP is configured, then it should be using that as the default vs fallback (i.e. Google TURN)

@davidzhao
davidzhao requested a review from hn8 July 25, 2021 17:38

@hn8 hn8 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davidzhao
davidzhao merged commit f8782fa into master Jul 26, 2021
@davidzhao
davidzhao deleted the enable-stun branch July 26, 2021 22:43
pull Bot pushed a commit to Screenleap/livekit-server that referenced this pull request Jul 27, 2021
* Send stun servers to clients

* use TURN/UDP as STUN servers
aravindanve pushed a commit to aravindanve/livekit that referenced this pull request Sep 29, 2026
* Send stun servers to clients

* use TURN/UDP as STUN servers
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 this pull request may close these issues.

2 participants