Dear Community User! We are updating our platform to a new system.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

С++ DL_CLIENT_NOT_CONNECTED via TCP

С++ DL_CLIENT_NOT_CONNECTED via TCP

arizhih
New Poster

Hello,

I'm trying to run datalayer.register.node example on my laptop. I changed IP addr in the example to point to my ctrlX CORE Vitrual, but it's not working.
My connection string is 

tcp://boschrexroth:boschrexroth@172.31.7.169:2070

In wireshark I don't see attempts to connect to the port 2070, instead it tries to connect to the port 443.

arizhih_1-1647869258178.png

 

I tried to change port in the connection string, but it doesn't help.

Is it possible to connect to the datalayer from developer machine?
I'm using SDK 1.12.1 and datalayer 1.7.5

4 REPLIES 4

nickH
Community Moderator
Community Moderator

Hello arizhih,

This should work. I just tried it with my ctrlX CORE virtual at 192.168.1.1 and this connection string:

"tcp://boschrexroth:boschrexroth@192.168.1.1:2070"

You can see a connection to Port 433 at first, because the client tries to register itself to the https port of the ctrlX CORE first. Before it starts the actual tcp connection at port 2070. 

 

Please have a look into your ctrlX CORE virtual and check the following points:

  • Is your user and password both boschrexroth?
  • Is your ctrlX CORE virtual in operation mode (and not in service mode)?
  • Is your ctrlX CORE virtual also from RM21.11 so version 1.12.x? 
    (you can check that in Settings->Apps and a click to "Show System Apps" or in ctrlX WORKS: see screenshot) 

ctrlX WORKS / Base image of a virtual COREctrlX WORKS / Base image of a virtual CORE

 

 

Best regards, 

Nick

Hello Nick,

Thanks a lot, now I see the problem. I'm using port forward and my ctrlX CORE Virtual available on port 8443. I've changed it to 443 and now all works fine.

Maybe you know how to use datalayer with non standard port?

 

Best regards,

Andrey

nickH
Community Moderator
Community Moderator

Hello Andrey,

great that it works for you now. 

You could change your connection string to something like this:

 

"tcp://boschrexroth:boschrexroth@<ip>:2070?sslport=8443"

 

Nick,

It worked, thanks a lot!

 

Best regards,

Andrey

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