Set intranet and the Internet addresses

Last Updated: Dec 26, 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 document mainly introduces how to apply for the Internet address, set the connection address of the Internet or intranet, and 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 Edition
  • MySQL 5.7
  • SQL Server 2012
Standard mode
  • Intranet address
  • Internet address
  • 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
  • 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 scenario 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 scenario 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 scenario is applicable when your application is deployed on the platform other than Alibaba Cloud.

  • Use both of the intranet and Internet addresses:

    • This scenario 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 scenario 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 must add the IP addresses or IP segments used to access the database to a whitelist. For more information, see Set whitelist.

  • The RDS charges a fee for traffic over the Internet address. For detailed charges, see RDS Price.

  • 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 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-side navigation pane 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 per your needs. Do 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 navigation pane 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 following figure.

    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 must release the Internet address, do as follows:

Note: The operation is displayed under the safe connection mode. For more information 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 navigation pane to go to the Database Connection page.

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

    release Internet address

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

Thank you! We've received your feedback.