“Port Forwarding” Tab

This tab is displayed if port forwarding is available and enabled for the device.

A controller can be configured as a router in the “Port Forwarding” tab. Devices can use this router to connect to the network, even if they are physically in a different subnetwork.

Note

Observe the Controller Configuration!

In order to use a controller as a router and to use it in e!COCKPIT for port forwarding, you must first make corresponding settings in the controller. For WAGO controllers based on Linux, configure the following IP parameters in the WBM on the "TCP/IP" page:

Switch Configuration: "Separated"
IP Address X1: Static IP → IP parameters in the network pointing to "outside"
IP Address X2: Static IP → IP parameters for the network with the downstream controllers
Default Gateway: X1 → Gateway in the network pointing to "outside"
DNS-Server: DNS server in the network pointing to "outside"

Whether a device can be used as a router can be identified in the context menu of the device connector in the network view. The protocols for the connection and “Port forwarding” can be selected in the context menu.

“Port Forwarding” in the Context Menu of the Connector
“Port Forwarding” in the Context Menu of the Connector

If port forwarding is selected, the icon for enabled port forwarding is displayed in the device tile above the connector. The context menu of the connector also changes – the [Settings] button is available.

Settings Button in the Context Menu of the Connector
[Settings] Button in the Context Menu of the Connector

This button is used to open the tab for port forwarding in the “Settings” panel. Port forwarding is created and edited here. IP addresses and ports can be edited by double-clicking.

“Port Forwarding” Tab of the “Settings” Panel
“Port Forwarding” Tab of the “Settings” Panel

The following columns are displayed:

Port Forwarding

Column

Description

Enabled

Port forwarding activated
The device can be used as router for other devices.

Port forwarding deactivated

IP address
(target device)

IP address of the off-network device to be connected

Port (router)

Port of the controller acting as router and for which port forwarding is activated

Port (target device)

Port of the off-network device to be connected

Port forwarding can be added from the menu ribbon, “PORT FORWARDING” tab and displayed as new lines in the panel.

“PORT FORWARDING” Tab of the Menu Ribbon
“PORT FORWARDING” Tab of the Menu Ribbon
Setting Up New Port Forwarding Configurations

Add Options

Description

Individual port forwarding

Creates a new line with no pre-allocation

e!COCKPIT-specific port forwarding

Creates two new lines with pre-allocated values for using WAGO devices:

  • Port 11740 (CODESYS port)
  • Port 6626 (WAGO connection)

Information about port forwarding is saved in the project.