Jitsi self-hosting behind NAT hair-pinning
-
I'm trying out Jitsi on my Cloudron hosted at home (behind a Mikrotik that supports hairpinning).
Jitsi installs with no issues, but when clients connect (either from the internal network - where Jitsi server is hosted, or from the Internet) there is no audio or video. Chat messages are sent successfully.
Pastebin of logs is available here.
When I look at the logs, this stands out most:
Feb 13 14:06:30 java.lang.IllegalArgumentException: No socket found for 172.18.20.240:10000/udp->192.168.88.197:60990/udp
I'm guessing port 10000 tcp/udp needs to be configured in my NAT rules?
Thanks! -
Indeed, like with other apps which show additional TCP or UDP ports during installation, those have to be forwarded if a router with its own firewall is in front of Cloudron.
Further I haven't found a way to make jitsi work with a different port than 10000. Although Cloudron will allow you to change this port, jitsi will not work on say port 10001. Just mentioning this in case someone tries.
-
@nebulon said in Jitsi self-hosting behind NAT hair-pinning:
Further I haven't found a way to make jitsi work with a different port than 10000.
Thanks @nebulon.
Apart from being able to use something common, 443/80/etc, I don't think it's an issue to have it on 10000.
I don't know the percentage of Cloudron users who are odd like me and want to self-host, but it might be helpful to add this to documentation. In case they don't get to the forums.
-
@ei8fdb did you get it working? I have had that port open since installation (I also self host) but mine has no audio or video either. Similar problem I have to audio calls through matrix... It all works fine on the same network but not if devices are on different networks and as far as I can tell the logs show everything working fine.
-
@ericdrgn said in Jitsi self-hosting behind NAT hair-pinning:
@ei8fdb did you get it working? I have had that port open since installation (I also self host) but mine has no audio or video either. Similar problem I have to audio calls through matrix... It all works fine on the same network but not if devices are on different networks and as far as I can tell the logs show everything working fine.
Hi @ericdrgn I was waiting to have the time to test this morning.
I have tested just now:
- server (8GB memory & 30% CPU dedicated) on home internet IP
- clientA (laptop, browser) on external WiFi network
- clientB (mobile android device, jitsi client) on mobile network
I did have video, and audio from both clients.
If you try some calls and grep for the messages I got? You can see them in the paste link.
Lemme know if you want any more information/help.