go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

WebRTC port already in use. Any port!

Open p3dr01984 opened this issue 3 months ago • 14 comments

Hello I am on go2rtc Version: 1.9.10, running on host network in Unraid 7.1.4.

First of all, there is nothing else on the default port 8555 No matter what port I try for WebRtc, I always always get address already in use, such as: ERR github.com/AlexxIT/go2rtc/internal/webrtc/webrtc.go:48 > error="listen udp 192.168.1.100:8555: bind: address already in use" No issues with RTSP or MSE

I did disable Frigate and home Assistant already.

What else can I try to fix this?

Thank you.

p3dr01984 avatar Oct 02 '25 16:10 p3dr01984

Google how to check which program is using a port in Linux.

AlexxIT avatar Oct 03 '25 09:10 AlexxIT

Thank you for your reply @AlexxIT . But as I said in the first post, no other program is using that port. ANY port I try it says it's already in use

I have no clue at this point

p3dr01984 avatar Oct 03 '25 10:10 p3dr01984

  1. Show your config (webrtc part)
  2. When you get this error? On app start? On stream strart?

AlexxIT avatar Oct 03 '25 12:10 AlexxIT

I get the error on app start.

api:
  listen: ":8084"

rtsp:
  listen: ":8556"

webrtc:
  listen: ":8991"          #or any port 
  candidates:
    - 192.168.1.100

thank you very much for helping out

p3dr01984 avatar Oct 03 '25 12:10 p3dr01984

Try to add your server IP-address to listener.

AlexxIT avatar Oct 03 '25 14:10 AlexxIT

holy cow that did it. I know this was a lame issue, but thank you so much for helping out anyway!

p3dr01984 avatar Oct 03 '25 15:10 p3dr01984

In any case, it's a bug. The port should work just fine.

AlexxIT avatar Oct 03 '25 16:10 AlexxIT

I had the same issue after upgrading to 1.9.10. Thank you!

Joshbloam avatar Oct 04 '25 18:10 Joshbloam

I want to bump this :)

TokeyChan avatar Oct 28 '25 13:10 TokeyChan

@TokeyChan If you have IPv6 address there - it's another issue. If this error happened for any port (you should try several) - it's another issue. In other case - it's your problem that the port is actually occupied by another application.

AlexxIT avatar Oct 28 '25 14:10 AlexxIT

I tried multiple ports and none made it possible to use. Hence I think it is the exact same issue that the original poster had

TokeyChan avatar Oct 28 '25 18:10 TokeyChan

My bad. Any port is this problem. Have you tried the latest version of go2rtc?

AlexxIT avatar Oct 28 '25 18:10 AlexxIT

I'm using the newest available docker container, which is v1.9.11

TokeyChan avatar Oct 28 '25 18:10 TokeyChan

i'm also getting this error in v1.9.12

go2rtc-1  | 17:11:24.381 ERR github.com/AlexxIT/go2rtc/internal/webrtc/webrtc.go:48 > error="listen udp [fe80::f0a9:42ff:fea3:6294%br-4979fe2d75df]:8555: bind: cannot assign requested address"

FIGIO55 avatar Dec 10 '25 17:12 FIGIO55