UDP In Node, How to get the global param for UDP port set?

Hi,I use UDP in node, and i already set the global port , like this:

global.set('QT_VHL_PORT', 9009);

and here is my question, how to get the global QT_VHL_PORT for UDP_IN node port setting?


By the way, for udp out node , get the global QT_VHL_PORT is easy to set, no problem.

This is not supported. You can use an environment variable though. See: Using environment variables : Node-RED

Thanks for reply , your suggestion of environment variable is exactly what i want.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.