How can I get ip from udp?

#1

Hi All;

I have a message from UDP protocol. I would like to get ip from UDP for message of arrival. How should I do? Could you please advise me about tactic or function for use this my issue?

Thank you,
Best regards.

0 Likes

#2

Hi All;

I am done. I use to template block {{ip}} and I use to function msg.ip = msg.payload.

Thank you,
Best regards.

0 Likes

#3

The shortcut would be to use a change node to "Set" msg.payload to msg.ip

0 Likes