Cannot get host mode to work on Ubuntu

On an old windows 10 laptop, I set up VMware and used the provided image and everything worked great. Except it was kind of laggy and Windows updates and restarts would break the system.

So I decided to go directly with the docker image in a Ubuntu os for stability. However no matter what I do I cannot connect to port 8123 unless I turn off host mode and explicitly expose the port. But I’m pretty sure this also breaks discovery of all sorts of things like kasa home.

I’ve only stumbled upon threads that have the exact opposite problem. Aka, they are attempting host networking which doesn’t work on some os’ like Mac

I’m pretty familiar with docker but I’m not as much with networking.

Post your compose or docker run and any errors