Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

connect ctrlX COREvirtual to the internet teaser.png

Connect ctrlX COREvirtual to the internet

CodeShepherd
Community Moderator
Community Moderator
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 internetctrlX 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:
    CodeShepherd_0-1631091542175.png
    Windows firewall settings "Programs and Services"Windows firewall settings "Programs and Services"Windows firewall settings "Protocols and Ports"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:
    CodeShepherd_0-1629878432821.png
  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 http://time.jsontest.com
    ctrlX CORE Node-RED - check internet connectionctrlX 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 connectionctrlX CORE web UI - check internet connection
Related information
CodeShepherd
CodeShepherd
Technical sales support from Bosch Rexroth
2 Comments
jawad
Long-established Member

I could not find px proxy properties in Windows firewall settings

CodeShepherd
Community Moderator
Community Moderator

@jawad px settings cannot be found but needs to be added by you, like mentioned above.

Must Read
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist