ApsaraDB for MongoDB allows you to directly apply for an Internet address for daily Internet connection management. The Internet address and traffic of ApsaraDB for MongoDB are free of charge for the moment.
Log on to MongoDB console and find the target instance.
Click the target instance ID or Manage to go to the Basic Information page.
On the Basic Information page, click Database Connection. The page as shown in the following appears.
Click any Apply for Internet Address shown in the preceding figure to activate an Internet connection address.
NOTE: A MongoDB replica set provides the Internet addresses for the primary and secondary nodes simultaneously, which are the same as the intranet addresses. For details about the connection method, see Connection description of replica set instances.