Skip to content

Commit 9967000

Browse files
committed
2 parents a14f596 + 45bbdca commit 9967000

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

FAQ.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ 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)
34+
- [Getting extra information out of Chrome](#getting-extra-information-out-of-chrome)
3335

3436

3537

@@ -230,4 +232,25 @@ This will force all connections to use the TURN relay.
230232

231233
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.
232234

233-
Alternatively, you can see our page on doing a STUN/TURN Debug using pion/turn [here](ICE%20Debugging.md).
235+
Alternatively, you can see our page on doing a STUN/TURN Debug using pion/turn [here](ICE%20Debugging.md).
236+
237+
## TURN/relay candidates are not generated in Chrome?
238+
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:
239+
240+
**MacOS**
241+
`/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --force-fieldtrials="WebRTC-Turn-AllowSystemPorts/Enabled/"`
242+
243+
**Windows**
244+
`Chrome.exe --force-fieldtrials="WebRTC-Turn-AllowSystemPorts/Enabled/"`
245+
246+
## Getting extra information out of Chrome
247+
When a WebRTC connection is not being made for whatever reason one key point of failure is on the browser side. There are a few different places to look within Chrome. For example:
248+
249+
1. chrome://webrtc-internals (This should be the first place you look for problems) - FireFox has a similar (but different) page called about:webrtc that you should cross reference with - particularly for ICE candidate failures.
250+
2. Launch Chrome through the terminal with extra logging ([full details here](https://www.chromium.org/for-testers/enable-logging)).
251+
252+
**Print to the console**
253+
`chrome.exe --enable-logging=stderr --v=1`
254+
255+
**Print stderr and stdout to a file**
256+
`chrome --enable-logging=stderr --v=1 > log.txt 2>&1`

0 commit comments

Comments
 (0)