By default, a DRDS instance has an internal network address, which allows applications and MySQL clients on Alibaba Cloud Elastic Compute Service (ECS) instances to connect to databases on DRDS instances. If you need to access the DRDS instance from a non-Alibaba-Cloud network, you must apply for a public IP address for the DRDS instance. This topic describes how to apply for and release a public IP address.

Apply for a public IP address

  1. Log on to the DRDS console.
  2. In the top navigation bar, select the region where the target instance is located.
  3. In the left-side navigation pane, click Instances.
  4. Find the target instance and click the instance ID to go to the Basic Information page.
  5. In the upper-right corner of the Connection Information area, click Apply for Public IP Address.
    1
  6. In the dialog box that appears, click OK.
    Note
    • To ensure data security, add the IP address of your application to the IP address whitelist of the target database on the instance. For more information, see Set an IP address whitelist.
    • To ensure data security, release the public IP address if it is no longer required. For more information, see Release a public IP address.

Release a public IP address

  1. Log on to the DRDS console.
  2. In the top navigation bar, select the region where the target instance is located.
  3. In the left-side navigation pane, click Instances.
  4. Find the target instance and click the instance ID to go to the Basic Information page.
  5. In the upper-right corner of the Connection Information area, click Release Public IP Address.
    Release Public IP Address
  6. In the dialog box that appears, click OK.