So basically I have a VPS Ubuntu 18.04 server and two LXD containers. One container is Ubuntu 18.04 server and running HAproxy.
The second container is Ubuntu 18.04 server and hosts a WebRTC Media server. (eventually I will have multiple containers, each hosting a media server).
I am port forwarding ports 80 and 443 to the HAproxy container. I am using the HAproxy to direct the incoming query to the container based on the subdomain, in this case amsc1. In the future I will have additional subdomains of amsc2, amsc3, etc. This is working fine.
You can access the server via https://amsc1.streamingworld.us/WebRTCApp
If you have a webcam, you will be prompted to allow access. If you allow, then you will see your webcam activated and displaying video. Only you can see this video. This part works fine, but then if you click on the “Start Publishing”, it will appear to be broadcasting, but then stop after 10-15 seconds. This is the problem. I think the problem is ICE/STUN related
but not sure.
In the past, I have seen this same issue with the same media software and when not using containers and the answer was to open ports 5000:65535 and that fixed the problem, but in my case with LXD containers, it does not fix it. So I’m thinking it’s a networking issue?
Thanks for your time and help.