diff --git a/docs/WEBRTC.md b/docs/WEBRTC.md index fd0a853633..ae2d3c1851 100644 --- a/docs/WEBRTC.md +++ b/docs/WEBRTC.md @@ -88,3 +88,54 @@ turn:username:password@turn.example.com:5349 ``` This is it - you now can make audio and video calls via your own server, without sharing any data with our servers (other than the key excange with your contact in E2E encrypted messages). + +## Troubleshoot + +- **Determine if server is available**: + + Run this command in your terminal: + + ```sh + ping + ``` + + If packets being transmitted, server is up! + +- **Determine if ports are open**: + + Run this command in your terminal: + + ```sh + nc -zvw10 443 5349 + ``` + + You should see: + + ``` + Connection to 443 port [tcp/https] succeeded! + Connection to 5349 port [tcp/*] succeeded! + ``` + +- **Test STUN/TURN connectivity:** + + 1. Go to [IceTest](https://icetest.info/). + + 2. In **Build up ICE Server List** section, add: + + + + - `STUN: stun::` and hit `Add STUN` + - `TURN: turn::`, `Username: `, `Credential: ` and hit `Add TURN` + + Where `` is 443 or 5349. + + 3. You should see your servers in **ICE server list** section. If everything is set up correctly, hit `Start test`: + + + + 4. In **Results** section, you should see something like this: + + + + If results show `srflx` and `relay` candidates, everything is set up correctly! + diff --git a/docs/stun_1.png b/docs/stun_1.png new file mode 100644 index 0000000000..d40db4bbdd Binary files /dev/null and b/docs/stun_1.png differ diff --git a/docs/stun_2.png b/docs/stun_2.png new file mode 100644 index 0000000000..4bc2319c58 Binary files /dev/null and b/docs/stun_2.png differ diff --git a/docs/stun_3.png b/docs/stun_3.png new file mode 100644 index 0000000000..4b3728da51 Binary files /dev/null and b/docs/stun_3.png differ