Open boldt opened 7 years ago
The solution is to use publish instead of expose (just used between containers)
sudo docker run -d --restart=always --name coturn -p 3478:3478 -p 3478:3478/udp -p 49152-65535/udp zolochevska/turn-server username password realm
Thus has one downside: It takes a lot of memory (up to 16 GB!)
Until that is fixed, I created a fork which opens just 100 ports (It can be configured as a fourth argument):
I am trying to run it on Azure and have the same issue with port, Do you have any idea? I cannot open more than 5 ports in Azure
Hey Anastasia,
I'm using your docker image to run a stun/turn server for an WebRTC application. I'm starting your image as follows on my server/host (e.g., IP 1.2.3.4):
netstat -tulpen
on the host shows me, that's working:Well, if WebRTC runs a turn request, I am getting a relay candidate (Chrome):
Looking into netstat on the host, nothing changed. Thus I jumped into the container:
Running
netstat -tulpen
in the container (I installed the packagenet-tools
), I see that the UDP port 54277 is bound inside the container:Using
1.2.3.4 54277
fails, since the bound port is not exposed to the host.Conclusion
The port range used by coturn to provide the TURN functionality must be exposed as well.
Possible Fix
Port range used by coturn: 49152-65535
Source: https://github.com/coturn/coturn/blob/master/examples/etc/turnserver.conf#L147