03/01/2024

Connect ctrlX COREvirtual to the internet

Content

This expert guide shows how to configure the ctrlX COREvirtual to connect it to the internet. For e.g. installing NodeRed pallets in the ctrlX CORE - Node-RED App.

Beware that a connection test via ping to a server in the internet is not possible because of the emulator. For further details see external documentation.

ctrlX COREvirtual port forwarded connection to internet

 

Use cases

ctrlX COREvirtual is using:

  1. Port forwarding mode and PC is in home network (open internet)
    • No proxy or special settings needed. The control emulation will directly connect to your PCs network and internet (NAT) when booted up.

  2. Port forwarding mode and PC is behind corporate proxy (company network)
    • A proxy tool is needed. See below.

  3. Port forwarding mode and PC is using VPN
    • A proxy tool is needed. See below.

  4. Network adapter mode and PC is connected to home network (open internet)
    • A proxy tool is needed with corresponding IP settings. See below. 

Some Background

  • 10.0.2.2 is the IP address of your host system using ctrlX COREvirtual in port forwarding mode (127.0.0.1). (E.g. if host is using a VPN)

  • In normal network adapter mode, you have to replace it with the corresponding IP address of the windows interface (by default: 192.168.1.101 for interface 1, 192.168.1.102 for interface 2 and so on). Beware that Px is only listening on localhost addresses in default settings. So settings in Px.ini needs to be changed to listen to your specific IP (listen = 192.168.1.101) or all IPs (gateway = 1).

Assumptions

  • Current version of ctrlX WORKS is installed.
  • Latest release of Px.exe or a similar proxy running on the PC, and allows connections from other interfaces (gateway mode). This tool will start processes invisible in the background. See task manager if it is running. There will be 2 or 3 instances if everthing is correct.
    !Please beware that this is an open source tool not provided by Rexroth!
  • Firewall inbound exception has to be added that allows incoming connections to port 3128:

    Windows firewall settings "Programs and Services"
    Windows firewall settings "Protocols and Ports"



Steps

  1. Start your proxy tool (e.g. Px)
  2. Log into the ctrlX COREvirtual and navigate to the proxy settings
  3. Add proxy address (e.g. http://10.0.2.2:3128) and save:
  4. Restart of the control is required for settings to take effect.

Test connection

  • In 1.20 a request can be send to a time server via Node-RED
    e.g. an GET to LINK
    ctrlX CORE Node-RED - check internet connection
  • From version 2.02 the network settings in the web UI of the ctrlX CORE can be used
    ctrlX CORE web UI - check internet connection

Related information

3

Latest published/updated articles

Types
How-to
Categories
Controls
IOT