#Cannot bind port 1900

1 messages · Page 1 of 1 (latest)

pearl sedge
#

Due to performance reasons I'm switching from HAOS in VirtualBox to running homeassistant directly in a Docker container. So far most is going good, but during one of the reboots I noticed that the container is unable to bind to port 1900 because it is already in use.

After some investigating it seems that the process that is binding to that port is com.docker.backend.exe, but only when the homeassistant container is running. It seems that somehow the container is trying to bind the same port twice? :S

The logs in homeassistant are not showing any issues, neither are the docker logs, but my autodiscovery (uPNP/SSDP) devices on the network are not (automagically) found. For example my Sonos: I can add the integration fine, but it won't do anything until the device itself was found by homeassistant.

Container image: homeassistant/home-assistant:latest (pulled today)
Network: system default 'host' network
Running Docker Desktop on Windows with WSL2 integration

hoary smelt
#

Run ss -lntp | grep 1900.

pearl sedge
#

ss is not a valid command within the Homeassistant image, and I'm running on Windows

#

Homeassistant itself seems to be binding to that port twice

hoary smelt
#

What does it say if you stop the container?

pearl sedge
#

It just stops the container, how do you mean?

hoary smelt
#

It should only cause issues if you don't have virtualization or windows itself is virtualized.
You could also use Hyper-V.

pearl sedge
#

Windows itself is not virtualized and running on a NUC

#

I'll see if HyperV works any better, was trying a docker container inside a Debian WSL terminal now but that doesn't seem to be easy to do either

hoary smelt
#

For a production HA you likely want to use a proper virtualization software like Proxmox VE.

pearl sedge
#

I'm fully new to Proxmox.
From their website I understand there is only a paid version?

hoary smelt
#

No. It's free and open source.

pearl sedge
#

Thanks

hoary smelt
pearl sedge
#

On Windows it shows that port 1900 is not in use

hoary smelt
#

Hmm.