Showing results for 
Search instead for 
Did you mean: 

Connecting to datalayer in appbuild enviroment

Connecting to datalayer in appbuild enviroment

Established Member

I am developing in dotnet and trying to connect to the datalayer while in the app build enviroment. So for example using the datalayer.client example in samples-net running the program will yield the following.

ctrlX Data Layer system started.
ctrlX Data Layer client created.
Client is not connected -> exit

I believe this is probably a combo of the wrong values in the connection string and maybe the dataleyer not running. Any advice on getting this set up? 


Using Version: 1.18.1


Community Moderator
Community Moderator

So as you suggested probably data layer is not running, you have to give this answer. The Client example will try to connect to an existing data layer.

  • Is a ctrlX Data Layer running on your PC (in ctrlX COREvirtual) or on your network that can be reached with your settings?
  • What are the connection data you are using?
  • Are IP/usename/password/port fitting to your ctrlX CORE hosting the data layer?

Community Moderator
Community Moderator

@CodeShepherd is right, it depends on where the Data Layer (respectively the ctrlX CORE) is you want to connect to. The connection settings in the .Net sample datalayer.client can be modified in the line 49 (see my screenshot). 


Please put in here the ip, the user and password of the ctrlX CORE you want to connect to.

(If you want to connect to a ctrlX CORE virtual, which is running on your host with port forwarding you have to put in the ip: "" and the sslPort: 8443)

Best regards, 


Nick, that got it most of the way, still cant get my connection to my virtual core to work but I can connect to my physical one so that works.

This works => var connectionString = new Remote(ip: "", user: "boschrexroth", password: "boschrexroth", sslPort: 443).ToString(); //physical device
This did not work =>//var connectionString = new Remote(ip: "", user: "boschrexroth", password: "boschrexroth", sslPort: 8443).ToString(); //virtual device
apprciate the answer, 


Community Moderator
Community Moderator

Hi Archer, 

great that you got the connection to the physical device running. 

Some hint regarding the connection to the ctrlX COREvirtual: There are two ways to run your control. 

  1. Network adapter: ip: -> connection settings for Data Layer Client like with the physical ctrlX CORE
  2. Port forwarding: ip: -> ip: and sslPort: 8443




Best regards,