[{"data":1,"prerenderedAt":245},["ShallowReactive",2],{"node-red-\u002Fnode-red\u002Fcore-nodes\u002Fudp-in":3},{"id":4,"title":5,"body":6,"description":226,"extension":238,"meta":239,"navigation":240,"path":241,"seo":242,"stem":243,"__hash__":244},"nodeRed\u002Fnode-red\u002Fcore-nodes\u002Fudp-in.md","Node-RED - UDP In Node",{"type":7,"value":8,"toc":225},"minimark",[9,14,19,23,28,39,43,46,135,141,146,150,182,186,192,197,201,221],[10,11,13],"h1",{"id":12},"udp-in","UDP In",[15,16,18],"h2",{"id":17},"what-is-udp-in-node-in-node-red","What is udp-in node in Node-RED?",[20,21,22],"p",{},"The UDP-In node in Node-RED enables the reception of UDP messages from remote devices or services. It acts as a listener, waiting for incoming UDP packets on a specified port. This functionality is crucial for real-time applications, such as IoT data ingestion and network communication. Whether you're receiving sensor data from IoT devices or communicating with other networked systems, the UDP-In node seamlessly integrates UDP communication into your Node-RED workflows, providing a lightweight and efficient solution for data reception.",[24,25,27],"h3",{"id":26},"what-is-udp","What is UDP?",[20,29,30,31,38],{},"UDP (User Datagram Protocol) is a connectionless protocol in the Internet Protocol suite. It transmits data packets, or datagrams, without establishing a connection, prioritizing speed over reliability. Commonly used for real-time applications like video streaming, online gaming, and VoIP. UDP's simplicity reduces latency but doesn't guarantee delivery of data packets. For more information refer to ",[32,33,37],"a",{"href":34,"rel":35},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FGlossary\u002FUDP",[36],"nofollow","UDP MDN Docs",".",[15,40,42],{"id":41},"configuring-udp-in-node","Configuring UDP-In Node",[20,44,45],{},"The UDP-In node in Node-RED provides versatile configuration options to tailor UDP message reception according to specific requirements:",[47,48,49,84,90,109],"ul",{},[50,51,52,56],"li",{},[53,54,55],"strong",{},"Listen for:",[47,57,58,64],{},[50,59,60,63],{},[53,61,62],{},"UDP messages:"," Receive standard UDP messages from remote devices or services.",[50,65,66,69,70],{},[53,67,68],{},"Multicast messages:"," Listen for multicast messages, allowing communication with multiple recipients simultaneously.\n",[47,71,72,78],{},[50,73,74,77],{},[53,75,76],{},"Group:"," Specify the multicast group address.",[50,79,80,83],{},[53,81,82],{},"Local IF:"," Choose the network interface to use for receiving multicast messages.",[50,85,86,89],{},[53,87,88],{},"On port:"," Define the port number on which the UDP-In node will listen for incoming messages.",[50,91,92,95],{},[53,93,94],{},"Using:",[47,96,97,103],{},[50,98,99,102],{},[53,100,101],{},"IPv4:"," Utilize IPv4 addressing for communication.",[50,104,105,108],{},[53,106,107],{},"IPv6:"," Utilize IPv6 addressing for communication, supporting the latest IP version.",[50,110,111,114,115],{},[53,112,113],{},"Output:"," Choose the format for the received data:",[47,116,117,123,129],{},[50,118,119,122],{},[53,120,121],{},"As a buffer:"," Receive messages as buffer objects.",[50,124,125,128],{},[53,126,127],{},"As a string:"," Receive messages as strings.",[50,130,131,134],{},[53,132,133],{},"As a base64 encoded string:"," Receive messages encoded in base64 format.",[20,136,137],{},[138,139,140],"em",{},"Note: On some systems, you may need root or administrator access to use ports below 1024 and\u002For broadcast, and have to ensure your firewall allows the data in.",[20,142,143],{},[53,144,145],{},"Note: The default UDP nodes have been removed from the Node-RED palette in the FlowFuse Cloud due to limitations in routing connections to the container running Node-RED inside the FlowFuse platform",[15,147,149],{"id":148},"usecases","Usecases",[47,151,152,158,164,170,176],{},[50,153,154,157],{},[53,155,156],{},"Sensor data acquisition:"," Receive real-time data from IoT sensors deployed in the field, such as temperature, humidity, or motion sensor readings.",[50,159,160,163],{},[53,161,162],{},"Device status monitoring:"," Monitor the operational status of IoT devices, such as connected appliances or industrial machinery, by receiving status updates over UDP.",[50,165,166,169],{},[53,167,168],{},"Environmental monitoring:"," Collect environmental data from IoT devices installed in remote locations, such as air quality sensors or weather stations, for analysis and decision-making.",[50,171,172,175],{},[53,173,174],{},"Asset tracking:"," Receive location data from IoT devices equipped with GPS or RFID technology to track the movement of assets, vehicles, or livestock in real-time.",[50,177,178,181],{},[53,179,180],{},"Media stream reception:"," Receive media streams, such as video or audio content, for applications like CCTV surveillance, live broadcasting, or multimedia communication.",[15,183,185],{"id":184},"example","Example",[187,188,189],"ol",{},[50,190,191],{},"In the example below, we have a UDP-In node configured to receive data sent over localhost and port 90, using a UDP-Out node.",[193,194],"render-flow",{":height":195,"flow":196},"200","W3siaWQiOiI4YjY1MTk2ZDhlMDY4MmE3IiwidHlwZSI6Imdyb3VwIiwieiI6IjViOTcyMTYxYzRlMDQ2NGUiLCJzdHlsZSI6eyJzdHJva2UiOiIjOTk5OTk5Iiwic3Ryb2tlLW9wYWNpdHkiOiIxIiwiZmlsbCI6Im5vbmUiLCJmaWxsLW9wYWNpdHkiOiIxIiwibGFiZWwiOnRydWUsImxhYmVsLXBvc2l0aW9uIjoibnciLCJjb2xvciI6IiNhNGE0YTQifSwibm9kZXMiOlsiYzY5MTkwNDE2MjkzYzJjNSIsIjE0NDhiZWU5NTI4MWY1YmIiLCI0ZDMxZDA1NzMxZjBmYTZjIiwiY2QwMTU1Nzc5YjUyN2ViMiIsIjliMGZkMjhjZTM1MWNiZWUiLCI1MzY2MGI0NjhmMTUwZmFhIl0sIngiOjM3NCwieSI6NTksInciOjQ3MiwiaCI6MjYyfSx7ImlkIjoiYzY5MTkwNDE2MjkzYzJjNSIsInR5cGUiOiJpbmplY3QiLCJ6IjoiNWI5NzIxNjFjNGUwNDY0ZSIsImciOiI4YjY1MTk2ZDhlMDY4MmE3IiwibmFtZSI6IiIsInByb3BzIjpbeyJwIjoicGF5bG9hZCJ9LHsicCI6InRvcGljIiwidnQiOiJzdHIifV0sInJlcGVhdCI6IjEiLCJjcm9udGFiIjoiIiwib25jZSI6ZmFsc2UsIm9uY2VEZWxheSI6MC4xLCJ0b3BpYyI6IiIsInBheWxvYWQiOiIiLCJwYXlsb2FkVHlwZSI6ImRhdGUiLCJ4Ijo0OTAsInkiOjE2MCwid2lyZXMiOltbIjE0NDhiZWU5NTI4MWY1YmIiXV19LHsiaWQiOiIxNDQ4YmVlOTUyODFmNWJiIiwidHlw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Y4MmE3IiwibmFtZSI6IlNlbmRpbmcgZGF0YSB0byBjbGllbnQiLCJpbmZvIjoiIiwieCI6NjAwLCJ5IjoxMDAsIndpcmVzIjpbXX0seyJpZCI6IjUzNjYwYjQ2OGYxNTBmYWEiLCJ0eXBlIjoiY29tbWVudCIsInoiOiI1Yjk3MjE2MWM0ZTA0NjRlIiwiZyI6IjhiNjUxOTZkOGUwNjgyYTciLCJuYW1lIjoiUmVjZXZpbmcgZGF0YSBmcm9tIHNlcnZlciAiLCJpbmZvIjoiIiwieCI6NjEwLCJ5IjoyMjAsIndpcmVzIjpbXX1d",[15,198,200],{"id":199},"output","Output",[47,202,203,209,215],{},[50,204,205,208],{},[53,206,207],{},"msg.payload:"," Output received messages as a Buffer, string, or base64 encoded string.",[50,210,211,214],{},[53,212,213],{},"msg.fromip:"," The IP address and port from which the message was received, formatted as \"IP:Port\".",[50,216,217,220],{},[53,218,219],{},"msg.ip and msg.port:"," The IP address and port from which the message was received.",[15,222,224],{"id":223},"node-documentation","Node Documentation",{"title":226,"searchDepth":227,"depth":227,"links":228},"",2,[229,233,234,235,236,237],{"id":17,"depth":227,"text":18,"children":230},[231],{"id":26,"depth":232,"text":27},3,{"id":41,"depth":227,"text":42},{"id":148,"depth":227,"text":149},{"id":184,"depth":227,"text":185},{"id":199,"depth":227,"text":200},{"id":223,"depth":227,"text":224},"md",{},true,"\u002Fnode-red\u002Fcore-nodes\u002Fudp-in",{"title":5,"description":226},"node-red\u002Fcore-nodes\u002Fudp-in","bGTnGCmhv8kBiquR7WU9dvBPlFv-XjrV_xLkHrCDpNA",1780070556306]