Fails to run in docker, can't create UDP port #150
-
I'm getting the following error when I start my docker compose container: ERROR:weatherflow2mqtt.weatherflow_mqtt:Could not start listening to the UDP Socket. Error is: Could not open a local UDP endpoint Here is my docker compose setup:
It works if I uncomment network_mode: host but then it can't access my MQTT since that's running in a container w/o a public port. I don't want to grant access to the host for this container. Is this possible? I also tried using the different commented out ports but they produced the same error. Any guidance would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The error message is that the WF2MQTT container cannot connect to the UDP port (50222) with the above setup, and that is why I am honestly not a network person and know little about how to configure this setup for both these things to work and not compromising the security setup you want. May try and ask the question in the Community Forum, here you will get a broader audience: https://community.home-assistant.io/t/weatherflow-to-mqtt-setup/416369 |
Beta Was this translation helpful? Give feedback.
The error message is that the WF2MQTT container cannot connect to the UDP port (50222) with the above setup, and that is why
network_mode: host
needs to be on. I then understand that if you do this, the access to the MQTT server is blocked.I am honestly not a network person and know little about how to configure this setup for both these things to work and not compromising the security setup you want. May try and ask the question in the Community Forum, here you will get a broader audience: https://community.home-assistant.io/t/weatherflow-to-mqtt-setup/416369