Change IP address of server from modbus

Hi guys,

I was wondering if It's possible to change the IP address of a modbus server created on node red from the dashboard.

For example : If the sever IP address is at first 125.0.0.0 I'm able to change to 124.0.0.0 from the dashboard without having to go inside my code.

Thanks guys :slight_smile:

If the node permits dynamic changing of IP then yes. Read its docs or contact the author if you get no answer here.

A workaround is to use env vars & set the IP to ${MODBUS_IP} - BUT - env are only read into node-red at start up - so if you do find a way to set MODBUS_IP env var from dashboard, you would also need to restart node-red.

1 Like

Okay.. I'ma see if I find a solution and I will post it here.

Thanks

Try out the Modbus Flex Connector node ..
it allows to modify the modbus connection settings (including IP)
image

2 Likes

Thanks for the help :+1:

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