Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2021-07-23 11:46:35 +0300
committerJoas Schilling <coding@schilljs.com>2021-08-20 10:23:11 +0300
commitca363f160a8282caa7e10f4dd70d48cb44ae6640 (patch)
treeadd929e5f533c2a91aa06ef69c6c80d2c1467f12 /docs
parentb953ae01f1e023d4b664f51970328b9b9e5e9595 (diff)
Update TURN server documentation
Update the TURN server documentation with some additional useful information how to check if the TRUN server is setup correctly and reachable from the outside. Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/TURN.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/docs/TURN.md b/docs/TURN.md
index d85ad6192..984df0ce9 100644
--- a/docs/TURN.md
+++ b/docs/TURN.md
@@ -193,6 +193,42 @@ If you need to retain the previous behaviour you should now do it by external me
#### 6. Testing the TURN server
+##### Test if the TURN server is accessible from outside
+
+Install _coTURN_ on your client. Please [refer above for details](#1-download-and-install). Note that in the case of the client you only need to install it, you do not need to perform any configuration after that.
+
+Run `turnutils_uclient -p <port> -W <static-auth-secret> -v -y turn.example.com` where
+- `<port>` is the port where your TURN server is listening
+- `<static-auth-secret>` is the _static-auth-secret_ value configured in your TURN server
+- `-v` enables the verbose mode to be able to check all the details
+- `-y` enables _client-to-client_ connections, so _turnutils_uclient_ acts as both the client and the peer that the TURN server relays to; otherwise you would need to also run _turnutils_peer_ to act as the peer to relay to and specify its address and port when running _turnutils_uclient_ with `-e` and `-r`
+
+By default the connection between the TURN client and the TURN server will be done using UDP. To instead test TCP connections you need to add `-t` to the options.
+
+No matter if you are using UDP or TCP the output should look similar to:
+
+ 0: IPv4. Connected from: 192.168.0.2:50988
+ 0: IPv4. Connected to: 1.2.3.4:3478
+ 0: allocate sent
+ 0: allocate response received:
+ 0: allocate sent
+ 0: allocate response received:
+ 0: success
+ 0: IPv4. Received relay addr: 1.2.3.4:56365
+ ....
+ 4: Total transmit time is 4
+ 4: Total lost packets 0 (0.000000%), total send dropped 0 (0.000000%)
+ 4: Average round trip delay 32.500000 ms; min = 15 ms, max = 56 ms
+ 4: Average jitter 12.600000 ms; min = 0 ms, max = 41 ms
+
+If the output hangs at some point this could mean that the TURN server is not accessible (for example, because a firewall blocks its ports). Pay special attention too to the _Total lost packets_ and _total send dropped_ values, as there would be no error message if the data was successfully sent to the TURN server but then it was not properly relayed.
+
+Further you should see in the TURN server log the successful connection.
+
+This test only verifies that your TURN server is accessible from the outside, but it does not check if your TURN server can be actually used within Talk. For that please keep reading.
+
+##### Test the TURN server connection from within Talk
+
When the TURN server is set in the Talk settings a basic test against the TURN server is performed. You can perform a deeper test by forcing your browser to send the media of a call only through the TURN server:
- Join a call