If your application is deployed on an ECS instance that is located in the same region and has the same network type as your RDS instance, you do not need an Internet address. If your application is deployed on an ECS that is located in a different region or has a network type different from that of your RDS instance, or is deployed on a platform other than Alibaba Cloud, an Internet address is necessary for access to the RDS instance.

Background information

RDS supports connections through the intranet and Internet addresses. The series, version, and access mode of the instance determine the available address types.

Series Version Access mode Connection address
Basic Edition
  • MySQL 5.7
  • SQL Server 2012
Standard mode
  • Intranet address
  • Internet address
  • Both the intranet and Internet addresses
High-Availability Edition
  • MySQL 5.5/5.6
  • SQL Server 2008 R2
  • PostgreSQL 9.4
  • PPAS 9.3
Standard mode
  • Intranet address
  • Internet address
Safe connection mode
  • Intranet address
  • Internet address
  • Both the intranet and Internet addresses

The applicable scenarios of the connection addresses are as follows:

  • Use the intranet address only:

    • The system provides an intranet address by default, and you can directly modify the connection address.

    • This scenario is applicable when your application is deployed on an ECS instance that is located in the same region and has the same network type as your RDS instance.

  • Use the Internet address only:

    • This scenario is applicable when your application is deployed on an ECS instance that is located in a region different from that of your RDS instance.

    • This scenario is applicable when your application is deployed on a platform other than Alibaba Cloud.

  • Use both the intranet and Internet addresses:

    • This scenario is applicable when your application is deployed on both of the following: (1) ECS instances that are in the same region and have the same network type as your RDS instance; (2) ECS instances that are in regions different from that of your RDS.

    • This scenario is applicable when your application is deployed on both of the following: (1) ECS instances that are in the same region as your RDS instance and have the same network type as your RDS instance; (2) Platforms other than Alibaba Cloud.

Attention

  • Before accessing an RDS instance, add IP addresses or segments to the whitelist; otherwise they cannot access the RDS instance. For more information, see Set a whitelist.

  • A traffic fee is charged for connections using an Internet address. For more information about pricing and fees charges, see RDS pricing.

  • Connecting the RDS instance with an Internet address may reduce the instance security. Proceed with caution. To get a higher transmission rate and a higher security level, we recommend that you migrate your applications to the ECS instances that are in the same region as your RDS.

Procedure

  1. Log on to the RDS console.
  2. Select the region where the target instance is located.
  3. Click the ID of the instance to visit the Basic Information page.
  4. Select Connection Options in the left-side navigation pane.
  5. Click Apply for Internet Address, as shown in the following figure.


  6. On the displayed confirmation window, click OK to generate an Internet address.
  7. Click Modify Connection Address and modify the connection address and port of the Internet or intranet, as shown in the following figure.

    Parameter description:

    • Connection type: Select intranet address or Internet address according to the connection type to be modified.

    • Connection Address: the address format is xxx.sqlserver.rds.aliyuncs.com and xxx is a user-defined field. The address can have 8 to 64 characters including letters and digits. It must begin with a lower-case letter.

    • Port: indicates the number of the port through which RDS provides external services, which can be an integer within the range [3200, 3999].

  8. Click OK.