Send Data to Specific Port via UDP - Printable Version +- Hilscher Community Forum (https://forum.hilscher.com) +-- Forum: General Infos (https://forum.hilscher.com/forum-28.html) +--- Forum: Projects (https://forum.hilscher.com/forum-41.html) +--- Thread: Send Data to Specific Port via UDP (/thread-615.html) |
Send Data to Specific Port via UDP - Hoeber - July-28th-2020 Hello, I connected the netPi RTE 3 to a Raspberry Pi 3 B+ via LAN. I switched off DHCP and assigned a fixed IP address. In order to send data to the netPI, I want to use UDP with Node-RED. I noticed, that Armin already posted the default UDP-Ports that the netPI listens to (see below), but I want the Port to be 9323. For this, I built up a Flow addressing the local IP of the netPI on Port 9323. The "Listening"-Flow is running on the netPI and the "Sending"-Flow is running on the Raspberry Pi (See attachment). The connection between them seems to be woking since I am able to Ping the netPi-IP-Address. But when I try to send messages to the mentioned Port 9323 nothing happens. Do I have to change some settings in the netPI's UI to allow listening to other Ports as well or is there another mistake I made? Many thanks in advance, André (February-9th-2018, 01:36 PM)Armin@netPI Wrote: By default netPI listens to the following ports: RE: Send Data to Specific Port via UDP - Armin@netPI - July-28th-2020 In Docker listing ports needs to be exclusively enabled for each container. This has nothing to do with netPI. If you Node-RED container is running in bridged mode - and I suppose it is - you have to use the "port mapping" function in Docker web-UI to map the external netPI host port 9323 to the container internal 9323 port and then the data is forwared to Node-RED that is running inside the container. Thx Armin RE: Send Data to Specific Port via UDP - Hoeber - July-29th-2020 Hello Armin, I just tried it and it works just fine. Thank you very much for your quick help! Kind regards, André |