pymodbus-dev / pymodbus

A full modbus protocol written in python
Other
2.16k stars 889 forks source link

2 ip address for 1 server #2212

Closed titov32 closed 2 weeks ago

titov32 commented 3 weeks ago

I am doing emulator device which have 2 ethernet link. How to assign second ip address for modbus server can listen 2 ip address? For example I create 2 device with addresses: 1 device: 10.1.0.1 and 10.2.0.1 and 2 device 10.1.0.2 and 10.2.0.2.

janiversen commented 3 weeks ago

You need to start 2 servers. A server simulates one device (potentially with devices connected below it).

janiversen commented 2 weeks ago

Closing, as this is not a bug, but pr design....however pull requests are welcome.