Skip to main content

Establishing a Connection to an Instance

Procedure. Establishing a direct connection to a runtime instance

Port forwarding allows you to connect directly to the runtime instances. This does not require any other instances besides the runtime instance.

Requirements

  • The port of the runtime instance for direct communication (11740) has to be forwarded.

    Notes:

    • This is not the default configuration for a runtime instance, but the instance needs to be configured afterwards.

      _rtsl_img_configure_image.png
    • Multiple configuration of the same port on the same target device is not possible. However, it is possible for you to use the next free port for the second runtime instance. Example: 11741:11740

  • A configured, reachable gateway exists. This gateway does not have to be on the same network.

  1. On the Communication tab, select an active gateway.

  2. Then, on the side of the device to be connected, enter the IP address of your host system running the runtime instance, followed by the forwarded port.

    Tab: Communication:

    _rtsl_img_communication_runtime_instance.png
Procedure. Gateway instance on target device

You can use a gateway instance to establish a CODESYSconnection to your runtime instances.

Requirements:

  • The gateway instance port for gateway communication (1217) has to be forwarded. This is the default configuration for a gateway instance.

  • Gateway and runtime instances have to be on the same container network. This is the default configuration.

  1. Now, to connect to a running instance, create a new CODESYSproject with the CODESYS Virtual Control for Linux SL device.

  2. Create a new gateway. For the new gateway, specify the IP address of your host computer where CODESYS Virtual Control for Linux SL is running in the IP Address field of the Gateway dialog.

  3. Select the new gateway and run a network scan.

The configured and started runtime instances are displayed.

_rtsl_img_runtime_instance_network_scan.png