Skip to content

Commit ca1bcdb

Browse files
authored
add info to faq about TURN ports on Chrome
1 parent 1ff7475 commit ca1bcdb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

FAQ.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ This list is to help solve a variety of issues that you may stumble across. Some
3030
- [How do I test my STUN/TURN Server?](#how-do-i-test-my-stunturn-server)
3131
- [STUN](#stun)
3232
- [TURN](#turn)
33+
- [TURN/relay candidates are not generated in Chrome?](#turnrelay-candidates-are-not-generated-in-chrome)
3334

3435

3536

@@ -230,4 +231,13 @@ This will force all connections to use the TURN relay.
230231

231232
4. Try and connect to your application in a new tab. If the TURN server is working properly, it should connect. If it does not, it will likely get stuck and fail to connect.
232233

233-
Alternatively, you can see our page on doing a STUN/TURN Debug using pion/turn [here](ICE%20Debugging.md).
234+
Alternatively, you can see our page on doing a STUN/TURN Debug using pion/turn [here](ICE%20Debugging.md).
235+
236+
## TURN/relay candidates are not generated in Chrome?
237+
Chrome will only let you use TURN if you are running TURN on port 53, 80, 443, 1024, or any port above 1024 [see WebRTC source](https://chromium.googlesource.com/external/webrtc/+/refs/heads/master/p2p/base/turn_port.cc#937). We typically recommend you run TURN on UDP port 19303. However, if you desperately need to run TURN on a port below 1024 you can do so by launching Chrome with a special field trial flag, like so:
238+
239+
**MacOS**
240+
`/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --force-fieldtrials="WebRTC-Turn-AllowSystemPorts/Enabled/"`
241+
242+
**Windows**
243+
`Chrome.exe --force-fieldtrials="WebRTC-Turn-AllowSystemPorts/Enabled/"`

0 commit comments

Comments
 (0)