Skip to content

Default Ice Servers Configuration #1095

Answered by paullouisageneau
ap0nia asked this question in Q&A
Discussion options

You must be logged in to vote

This is expected, you need a STUN server on both sides to ensure NAT traversal works as expected if both peers are behind a NAT.

Irrelevant of the aiortc decision, I think hardcoding the Google STUN server by default is actually a bad idea:

  • In some situations it's perfectly valid not to set any ICE servers (peers on the same network, a server with a public address...)
  • Devs will typically stick to the default so it introduces a hidden dependency on Google
  • Leaking network addresses might be considered a privacy issue
  • The Google STUN server offers no guarantee or SLA
  • The Google STUN server is blocked in some countries, typically in mainland China

For anything other than tests, you should d…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ap0nia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants