Set Intranet and Internet addresses

Last Updated: Jul 03, 2017

You can select the connection type (Intranet or Internet) of the instance according to the business requirements. The system generates the Intranet address by default, so this article mainly introduces how to apply for an Internet address, how to set the connection address of Internet or Intranet, and how to release the Internet address.

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.

  • The RDS will charge a fee for traffic over the Internet address. For detailed charges, please refer to RDS Price.

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

Apply for the Internet address

  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.

Modify the connection address

You can modify the Internet and Intranet connection address as your needs. The operation procedure is as follows.

  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 go to the Basic Information page.

  4. Select Database Connection in the left-side menu to go to the Database Connection page.

  5. Click Modify Connection Address in Connection Information part.

  6. Select the connection type and modify its connection addresses and port number, and then click OK, as shown in the figure below.

    Modify connection address

    Parameters 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].

Release the Internet address

If you need to release the Internet address, do the operation as follows.

Note: The operation is displayed under the safe connection mode. For details about safe connection mode, see Set access mode.

  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 go to the Basic Information page.

  4. Select Database Connection in the left-side menu to go to the Database Connection page.

  5. Click Release Internet Address in Connection Information part, as shown in the figure below.

    release internet address

  6. Click Confirm on the displayed confirmation interface to release the Internet address.

Thank you! We've received your feedback.