Use the search feature to view Kepware's repository of more than 500 Knowledge Base articles. Narrow your results or type your query into the search field below.

Alternatively, if you are unable to find a solution, we have an additional resource - our PTC eSupport Portal . If you are prompted to log into the eSupport Portal, you can use your My Kepware credentials. Need a My Kepware account? Create one here .

Search Solution Results By:
View All Solutions

Kepware Knowledge Base: Solution

Can I connect to a localhost Modbus TCP/IP Server device?

Last Update: 3/18/2021
Yes. Use the Modbus RTU Serial Driver with Ethernet Encapsulation (instead of the Modbus TCP/IP Ethernet Driver).


Follow these steps:


  1. Create a channel and select Ethernet Encapsulation under Communications.
  2. Select the Network Interface option.
  3. Enter the local host IP to bind it to that channel.
  4. Create the target device within that channel.
  5. Verify the server node ID matches the target device configuration.
  6. In the device properties Ethernet Encapsulation settings, set the target device IP address to the local machine IP address.
  7. Set the Modbus TCP port to 502.
  8. Configure the device to use TCP framing with no leading or trailing bytes.
  9. Verify the server can now use the Modbus RTU Serial Driver to communicate through the selected network adapter, then back inward at itself for any Modbus servers responding to the requested device ID.


Related Products
KEPServerEX, Modbus Suite