tonyc / open890

A web-based remote UI for the Kenwood TS-890.
Other
75 stars 3 forks source link

Audio streaming with Docker #108

Closed tonyc closed 1 year ago

tonyc commented 1 year ago

Audio streaming when running with docker does not seem to work properly, e.g:

docker run -it --rm -p 4000:4000 -p 60001:60001 ghcr.io/tonyc/open890:latest

When streaming starts, the radio starts sending UDP packets to the host that initiated the TCP connection. I would assume that when running under Docker, this is the host machine (from the perspective of the radio).

I thought that forwarding 60001:60001 like in the command above should work, but it doesn't, so I might be making an incorrect assumption about the direction the port forward works, or if the port forwarding is even the problem.

tonyc commented 1 year ago

Of course, just after I write this ticket, I figure it out. -p x:y is only for TCP ports. The correct command is thus:

docker run -it --rm -p 4000:4000 -p 60001:60001/udp ghcr.io/tonyc/open890:latest