This topic describes how to apply for a public endpoint for a standalone ApsaraDB for MongoDB instance when you want to connect to this instance over the Internet.

Background information

The following table describes the connections supported by a standalone ApsaraDB for MongoDB instance.

Address type Description
VPC connection address
  • A VPC is an isolated virtual network with better security and performance than a classic network.
  • By default, an ApsaraDB for MongoDB instance provides VPC connection addresses.
Public connection address
  • By default, ApsaraDB for MongoDB instances do not provide public connection addresses because connecting to instances over the Internet poses security risks.
  • If you want to connect to an ApsaraDB for MongoDB instance from a device outside of Alibaba Cloud (such as a local device), you must apply for a public endpoint.

Procedure

Note To ensure data security, promptly release public connection addresses you no longer need. For more information, see Release a public connection address.
  1. Log on to the ApsaraDB for MongoDB console.
  2. In the upper-left corner of the page, select the resource group and the region of the target instance.
  3. In the left-side navigation pane, click Replica Set Instances.
  4. Find the target instance and click its ID.
  5. In the left-side navigation pane, click Database Connections.
  6. Click Apply for Public Connection String on the right of Public Connections.
    Apply for a public endpoint
  7. In the dialog box that appears, click OK.
    Note If you want to connect to an instance by using a requested public endpoint, you must add the public IP address of the device that connects to the instance to a whitelist of the instance. For more information, see Configure a whitelist.

References

Connect to an ApsaraDB for MongoDB instance over the Internet