How can I configure a Modbus TCP client node in Node-RED to listen for incoming connections? Once the connection is established, I would like the client to start polling data

I want the node red Modbus client to listen on port . Once my Modbus device is powered up, it should automatically connect to the node red Modbus client using the node red IP address and the port. After the device is connected, the Modbus client will start reading the holding registers.

is this possible ?

Welcome to the forum

I am confused about what you mean by client and server. It is the server that listens on a port, and the client that issues read/write requests.

Colin You are right Server will listen on port. but for us we have application where client has to listen on port. And out Modbus Gateway which Server will connect to that Client based on Client ip and Port no.

So Do we have Modbus Client in node red which can listen on Port ?

Application has some changes in network, due to which we have to follow this method.

What would it listen for? What communications should it expect to receive on that port?