Connecting to Remote Server
Control Architect supports connecting to a remote Server such as a Mongo Atlas Cloud host or a remote Network Server that has MongoDb server installed and running as a Service.
Connecting to a remote Network Server
The Windows Server machine hosting the MongoDB Service needs to open its port 27017 to allow inbound connections. Create a new Inbound Rule in your Windows Server 2016 server to open port 27017 to allow inbound connection requests.
Configure your Mongo Service configuration file similar to below:
The storage and net sections of this configuration file require adjusting to reflect your server configuration.
The default port# 27017 can be maintained or the IT specialist may choose another port to provide inbound connections.
The physical database path as shown below for "dbPath" should be changed to reflect the folder path that contains your Mongo DB database files.
If authentication is required on the Mongo database, then modify the configuration file as follows:
| The '#' pound character is used to comment out a line in the configuration file. Also note that strict indentation is required according to yaml rules.
|
This configuration file is typically stored where the Mongo Server binary files are located, but can be stored anywhere. The Mongo Service when installed requires you to specify the location of this configuration file.
Install the Mongo Service using Command Prompt tool:
-
Run Command Prompt as Administrator
-
Enter the command script to install the Mongo Service as shown in this snapshot. Specify the folder path where the mongod.exe executable resides and also specify the folder path where your mongo configuration file resides:
After running the command to install the Mongo Service, you can view the installed Server status using Windows "service.msc" as shown below:
Enable Server Authentication
Determine if your Server installation will require authenticated access to the Mongo databases. If authentication is required, then your Server manager must add the users and their credentials and provide this data to the clients to allow them to connect using authentication. Refer to
this topic for information about adding new users for authenticated access. Choose the
Use MongoServer Authentication option to enable passing of authentication User Name and Password when connecting to a Mongo Server.
Install a physical Mongo database
See the topic
Moving Server Database for information on copying an existing physical database to move it to another file location.
Mongo Server tab
|
|
Authentication Credentials
Specify the User Name and Password for establishing an authenticated connection to the remote Mongo Server.
|
|
Use Remote Server option
Choose this option to specify a remote server. This could be a connection string for connecting to a Mongo Atlas Cloud host or an IP Address for connecting to a remote Network Server installation.
|
|
MRU List of Remote Addresses drop-down list
Enter the address of a remote Server or click this drop down button to select from a list of most recently used remote server addresses.
|
|
Remote Server Port
Specify the Server port to use when connecting to a remote Server.
|
|
Use MongoServer Authentication option
Choose this option to connect to a Mongo Database using authentication.
|
|