Hey guys,
I've got node-red installed in a docker container on my QNAP nas and it works with the most basic flows (from getting started).
I'm trying to listen for multicast packets from 224.0.0.50 on both ports 4321 and 9898, but node-red is not receiving them.
I used the following command to create my container.
# docker run -d -p 1880:1880 --name="node-red" -e TZ="Australia/Melbourne" --net=host nodered/node-red-docker
I've recreated my container explicitly exposing udp ports 9898 and 4321, but this hasn't changed anything.
# docker run -d -p 1880:1880 -p 4321:4321/udp -p 9898:9898/udp --name="node-red2" -e TZ="Australia/Melbourne" --net=host nodered/node-red-docker
My networking skills are rudimentary at best, but I'm trying to narrow down where the issue lies.
Wireshark doesn't show udp packets on 224.0.0.50 on either port.
It only shows packets on 224.0.0.251 on port 5353.
However, I've run Multicast Tester on my android phone and can see the relevant traffic.
I've entered the console of the container and installed tcpdump and run using:
# tcpdump port 9898 or port 4321 -vv -w dump.pcap
Copying the file to the host, I can see the guest is receiving the packets.
I cannot work out why is node-red not receiving them.
My test flow is extremely basic.
[{"id":"24b9b852.1752e8","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"8c505884.8c0bf8","type":"udp in","z":"24b9b852.1752e8","name":"","iface":"","port":"9898","ipv":"udp4","multicast":"true","group":"224.0.0.50","datatype":"utf8","x":240,"y":140,"wires":[["2f83a03.3e3e16"]]},{"id":"2f83a03.3e3e16","type":"debug","z":"24b9b852.1752e8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":470,"y":140,"wires":[]},{"id":"6aa48398.cd415c","type":"udp in","z":"24b9b852.1752e8","name":"","iface":"","port":"4321","ipv":"udp4","multicast":"true","group":"224.0.0.50","datatype":"utf8","x":240,"y":200,"wires":[["2f83a03.3e3e16"]]},{"id":"7375ae5b.2e5cb","type":"udp in","z":"24b9b852.1752e8","name":"","iface":"","port":"5353","ipv":"udp4","multicast":"true","group":"224.0.0.251","datatype":"utf8","x":250,"y":260,"wires":[["2f83a03.3e3e16"]]}]
Is there something I'm not doing correctly?
Any help would be greatly appreciated.
Cam