1.9.10 Webrtc listener regression
It looks like 1.9.10 now surfaces a Webrtc listen error for ipv6 but now it's not listening for Webrtc and there's no way to get it to use ipv4 such as listen: 0.0.0.0:8555
error undefined error=listen udp [fe80::dca1:61ff:fe4b:6227%eth1]:8555: bind: cannot assign requested address
This is go2rtc running within frigate in docker.
The workaround seems to be
webrtc:
listen: ":8555"
filters:
networks: [ udp4, tcp4 ]
Perhaps it's related to container starting too soon? I'm having this issue when the OS restarts. It outputs exact error message as @Daniel-dev22's. When I manually restart the container, it binds ipv6 address just fine and starts working again.
Is this happening again on v1.9.11? Perhaps the problem was fixed by itself when updating external dependencies.
Seems to be fixed on my end
Still broken for me on 1.9.11
Oct 30 14:23:37 nas go2rtc[1463050]: 14:23:37.127 INF go2rtc platform=linux/amd64 revision=be80eb1 version=1.9.11
Oct 30 14:23:37 nas go2rtc[1463050]: 14:23:37.127 INF config path=/config/go2rtc.yaml
Oct 30 14:23:37 nas go2rtc[1463050]: 14:23:37.128 INF [rtsp] listen addr=:8554
Oct 30 14:23:37 nas go2rtc[1463050]: 14:23:37.128 INF [api] listen addr=:1984
Oct 30 14:23:37 nas go2rtc[1463050]: 14:23:37.129 ERR github.com/AlexxIT/go2rtc/internal/webrtc/webrtc.go:48 > error="listen udp [fe80::42:aff:feff:a025%eth0]:8555: bind: cannot assign requested address"
1.9.12
I'm not getting the error, but not listening on IPv4. (HomeAssistant Add-on)
11:16:37.282 INF go2rtc platform=linux/arm64 revision=2dc0d58 version=1.9.12 11:16:37.282 INF config path=/config/go2rtc.yaml 11:16:37.283 INF [rtsp] listen addr=:8554 11:16:37.283 INF [api] listen addr=:1984 11:16:37.285 INF [webrtc] listen addr=:18555
webrtc: candidates: - "<extIP>:18555" listen: ":18555" filters: networks: [ udp4, tcp4 ]
➜ ~ netstat -an | grep LISTEN
tcp 0 0 0.0.0.0:8123 0.0.0.0:* LISTEN
tcp 0 0 172.30.32.1:62805 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:4357 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.173:1400 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:1884 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:18554 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8883 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8884 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:11984 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp6 0 0 :::8123 :::* LISTEN
tcp6 0 0 :::5355 :::* LISTEN
tcp6 0 0 :::4357 :::* LISTEN
tcp6 0 0 :::18555 :::* LISTEN
tcp6 0 0 :::1883 :::* LISTEN
tcp6 0 0 :::1884 :::* LISTEN
tcp6 0 0 :::1984 :::* LISTEN
tcp6 0 0 :::8883 :::* LISTEN
tcp6 0 0 :::8884 :::* LISTEN
tcp6 0 0 :::111 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::8554 :::* LISTEN