Your PLC, energy meter, or flow controller speaks Modbus RTU over a serial cable. Your SCADA, HMI, or data logger runs on a machine across the building — or across the country. This guide shows how to bridge that gap with a virtual COM port, so your existing software never knows the difference.
[Modbus Master (Kepware / Ignition)] → [Virtual COM5 — SEC client] ⟷ TCP / LAN / WAN ⟷ [SEC server] → [Physical COM1 RS-485] → [PLC / Meter / RTU]
[Modbus Master SCADA] → COM5 ⟷ TCP ⟷ SEC server → COM1 → [Energy Meter, Site A]
→ COM6 ⟷ TCP ⟷ SEC server → COM1 → [PLC, Site B]
→ COM7 ⟷ TCP ⟷ SEC server → COM1 → [RTU, Site C]
The tunnel works with any device that speaks Modbus RTU. Most frequent configurations:
nc -zv 192.168.1.50 5000
# Expected: Connection to 192.168.1.50 5000 port [tcp/*] succeeded!
# If this fails, the firewall is blocking the TCP port