Help Center> Document Database Service> Best Practices> Connecting to a DB Instance Through an EIP

Connecting to a DB Instance Through an EIP

This section uses a DDS replica set instance and Windows operating system as an example to describe how to bind an EIP on the DDS console, set a security group, and connect to the DDS DB instance using the Robo 3T tool in your local environment. The procedures are as follows:

Step 1: Bind an EIP

  1. Log in to the management console.
  2. On the Instance Management page, click the target DB instance. The Basic Information page is displayed.
    Figure 1 Instance management
  3. In the Node Information area, locate the row that contains the primary node and click Bind EIP.
    Figure 2 Node information
  4. In the displayed dialog box, select a purchased EIP and click OK.
    Figure 3 Binding an EIP

    A message in the upper right corner is displayed, indicating the request is successfully issued.

    Figure 4 EIP being bound
  5. After the binding is successful, view the EIP in the Node Information area.
    Figure 5 EIP bound successfully

Step 2: Set a Security Group

  1. In the DB Information area on the Basic Information page, verify that SSL is disabled.
    Figure 6 Database information
  2. In the Network Information area, check the database port of the DB instance.
    Figure 7 Network information
  3. In the Network Information area, click the security group name.
  4. On the Security Groups page, click the security group name.
  5. Click the Inbound Rules tab and click Add Rule. In the displayed dialog box, add an inbound rule for the database port.
    Figure 8 Add Inbound Rule

Step 3: Connect to a DDS DB Instance

  1. Download Robo 3T from https://robomongo.org/download.
    Figure 9 Downloading Robo 3T
  2. In the displayed dialog box, download robo3t-1.3.1-windows-x86_64-7419c406.exe.
    Figure 10 Downloading Robo 3T
  3. Double-click the robo3t-1.3.1-windows-x86_64-7419c406.exe file to start the installation.
  4. Run the installed Robo 3T. On the connection information page, click Create.
    Figure 11 Connection information
  5. In the Connection Settings dialog box, set the parameters of the new connection.
    1. On the Connection tab, set Name to the name of the new connection and Address to the EIP and database port bound to the DDS DB instance.
      Figure 12 Connection
    2. On the Authentication tab, set Database to admin, User Name to rwuser, and Password to the administrator password you set during the creation of the DDS DB instance.
      Figure 13 Authentication
    3. Click Save.
  6. Click Connect to connect to the DDS DB instance.
    Figure 14 Connection information
  7. If the DDS DB instance is successfully connected, the following information is displayed:
    Figure 15 Connection succeeded