go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

1.9.10 Webrtc listener regression

Open Daniel-dev22 opened this issue 3 months ago • 5 comments

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 ]

Daniel-dev22 avatar Oct 02 '25 09:10 Daniel-dev22

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.

kimiroo avatar Oct 11 '25 19:10 kimiroo

Is this happening again on v1.9.11? Perhaps the problem was fixed by itself when updating external dependencies.

AlexxIT avatar Oct 23 '25 12:10 AlexxIT

Seems to be fixed on my end

kimiroo avatar Oct 28 '25 05:10 kimiroo

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"

dotdoom avatar Oct 30 '25 14:10 dotdoom

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

mandy-pepper avatar Nov 17 '25 01:11 mandy-pepper