Browse Source

added info for when behind a NAT

master
rra 2 weeks ago
parent
commit
f45806ce00
1 changed files with 12 additions and 6 deletions
  1. 12
    6
      content/instant-messaging/server-support-for-audio-video-calls.md

+ 12
- 6
content/instant-messaging/server-support-for-audio-video-calls.md View File

@@ -28,15 +28,15 @@ To make your server communicate make sure following ports are open in your firew
28 28
     :::console
29 29
     3478 (TURN)
30 30
     5349 (TURN + TLS)
31
-	49152-65535 (UDP endpoints for clients)
31
+    49152-65535 (UDP endpoints for clients)
32 32
 
33 33
 Set up Coturn
34 34
 ---
35 35
 
36 36
 First install Coturn
37 37
 
38
-	:::console
39
-	$ sudo apt-get update && sudo apt-get install coturn
38
+    :::console
39
+    $ sudo apt-get update && sudo apt-get install coturn
40 40
 
41 41
 After installing first make a backup of the existing configuration:
42 42
 
@@ -60,7 +60,8 @@ The file looks like this:
60 60
     listening-port=3478
61 61
     tls-listening-port=5349
62 62
 
63
-    # Your external IP, needed for some connections
63
+    # Your machine's IP addres
64
+    # This is either the external IP or, in the case you are behind a NAT, the IP of the machine in the NAT
64 65
     listening-ip=CUSTOMIZE THIS
65 66
 
66 67
     # Your domain name
@@ -92,10 +93,15 @@ The file looks like this:
92 93
 
93 94
 Now time for some config. You need to edit `/etc/tunserver.conf` in a few places.
94 95
  
95
-First, add your external IP-address to `listening-ip`. If you don't know it, you can find out using the following command:
96
+First, add your servers' IP-address to `listening-ip`. 
97
+
98
+In case you are behind a NAT, for example when you are hosting from home and are [making use of port forwarding]({filename}../fundamentals/port_forwarding.md) this will be a local IP adress. If your machine is directly exposed to the internet, that is the external IP-addres. 
99
+
100
+If you don't know it, you can find out using the following command:
96 101
 
97 102
     :::console
98
-    $ curl https://ifconfig.co
103
+    $ ip --oneline addr show primary | grep -E '(en|eth)'
104
+   
99 105
 
100 106
 After that make sure `realm` points to the domain name of the server. 
101 107
 

Loading…
Cancel
Save