Apply for an Internet address

Last Updated: Jul 11, 2017

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

Note: When the instances are in the same region (the zones can be different), they can access each other through the Intranet.

Background information

RDS supports connections through the Intranet addresses and Internet addresses. The access mode and instance version have the following effects on the selection of the connection address.

Instance seriesInstance versionAccess modeConnection address
Basic single node edition
  • MySQL 5.7
  • SQL Server 2012
Standard mode
  • Intranet address
  • Internet address
  • Intranet and Internet addresses
HA dual node 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
  • Intranet and Internet addresses
Finance editionMySQL 5.6Standard mode
  • Intranet address
  • Internet address
Safe connection mode
  • Intranet address
  • Internet address
  • 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 situation is applicable when your application is deployed on the ECS instance that is located in the same region and has the same network type with those of your RDS instance.

  • Use the Internet address only:

    • This situation is applicable when your application is deployed on the ECS instance that is located in the different region with that of your RDS instance.

    • This situation is applicable when your application is deployed on the platform other than Alibaba Cloud.

  • Use both of the Intranet and Internet addresses:

    • This situation is applicable when your application is deployed on the ECS instance that is located in the same region and has the same network type with those of your RDS instance, and on the ECS instances of different regions at the same time.

    • This situation is applicable when your application is deployed on the ECS instance that is located in the same region and has the same network type with those of your RDS instance, and on the platform other than Alibaba Cloud at the same time.

Attentions

  • Before accessing the database, you need to add the IP addresses or IP segments used to access the database to a white list. For details, refer to Set a white list.

  • A traffic fee will be charged for connections using an Internet address. For details about pricing and fees charges, refer to RDS pricing page.

  • Connecting the RDS instance with an Internet address may reduce the instance security. Do proceed with caution. To get a higher transmission rate and a higher security level, it is recommended that you migrate your applications to the ECS instances in the same region with that of your RDS.

Operation procedure

  1. Log on to the RDS Console.

  2. Select the region where the target instance is located.

  3. Click the ID of the target instance to visit to the Basic Information page.

  4. Select Database Connection in the left navigation bar to visit the Database Connection page.

  5. Click Apply for Internet Address, as shown in the following picture.

    Button of Apply for Internet Address

  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 picture.

    Modify the connection address of the Internet or Intranet

    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.mysql.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.

Thank you! We've received your feedback.