I'm trying to figure out why the livekit server isn't working. Whenever I try joining a call, I get the following error message:
Error processing request: Unable to create room on SFU
After some poking around, I remember that the NGINX config is wired to a specific IP address. Checking the IP addresses from inside the NGINX container, I see:
$ sudo docker compose exec swag cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00:: ip6-localnet
ff00:: ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.1 host.docker.internal
172.18.0.4 8802a2840b19
Last time (20260221104212) I
mentioned adding a rule on the host for
172.18.0.2 and 172.18.0.3,
but I see now that the IP address is
172.18.0.4. Maybe it would be better to
allow the entire subnet:
$ sudo ufw allow from 172.18.0.0/24
$ sudo ufw status
Status: active
To Action From
-- ------ ----
22 ALLOW Anywhere
80 ALLOW Anywhere
443 ALLOW Anywhere
8448 ALLOW Anywhere
7881/tcp ALLOW Anywhere
50100:50200/udp ALLOW Anywhere
3478 ALLOW Anywhere
5349 ALLOW Anywhere
50201:65535/udp ALLOW Anywhere
Anywhere ALLOW 172.18.0.2
Anywhere ALLOW 172.18.0.3
Anywhere ALLOW 172.18.0.0/24
22 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
8448 (v6) ALLOW Anywhere (v6)
7881/tcp (v6) ALLOW Anywhere (v6)
50100:50200/udp (v6) ALLOW Anywhere (v6)
3478 (v6) ALLOW Anywhere (v6)
5349 (v6) ALLOW Anywhere (v6)
50201:65535/udp (v6) ALLOW Anywhere (v6)
$ sudo ufw delete 10
Deleting:
allow from 172.18.0.2
Proceed with operation (y|n)? y
Rule deleted
$ sudo ufw delete 10
Deleting:
allow from 172.18.0.3
Proceed with operation (y|n)? y
Rule deleted
Voice chat works again!