Set Up Atlas Connectivity

Deployment Type:
Client:

    Author: MongoDB Documentation Team

    This guide will show you how to set up your Atlas cluster for connections from a client. You will:

    • whitelist your IP address in order to allow access to your Atlas cluster
    • locate your connection string and copy it

    Time required: 15 minutes

    What You’ll Need

    Procedure

    1

    Login to Atlas

    Login to Atlas.

    2

    Click the Connect button

    Click the connect button on the cluster management panel. The following Atlas screenshot shows the connect button:

    ../_images/connect_panel.png
    3

    Whitelist your IP address and select your connection method

    In the Setup connection security step in the modal window, check to make sure your IP address is in the whitelist for Atlas connections. If it is not, add it.

    The following Atlas screenshot shows the options for adding IP addresses in the Atlas UI:

    ../_images/connectionstringwhitelist.png

    If your cluster already has one or more IP Whitelist entries you will not have access to the button to add your IP address in the modal. Instead, use the following procedure to add your IP address to the whitelist:

    1. Exit the modal window.
    2. Click the Security tab in the Atlas UI.
    3. Click the IP Whitelist tab.
    4. Click the green Add IP Address button.
    5. Add your IP address.
    6. Return to the Clusters Overview tab.
    7. Click the Connect button and proceed.

    For more information on whitelisting IP addresses, see Configure Whitelist Entries in the Atlas documentation.

    4

    Copy the connection string

    In the Choose a connection method step in the modal window, select the button marked Connect with the Mongo Shell.

    The following Atlas screenshot shows the connection option buttons:

    ../_images/connection-method.png

    Follow the instructions for your platform.

    In the Choose a connection method step in the modal window select the button marked Connect with MongoDB Compass.

    The following Atlas screenshot shows the connection option buttons:

    ../_images/connection-method.png

    Follow the instructions for your version of Compass.

    In the Choose your connection method step in the modal, select the button marked Connect Your Application.

    The following Atlas screenshot shows the connection option buttons:

    ../_images/connection-method.png

    Follow the instructions for your driver language and version.

    In the Choose your connection method step in the modal, select the button marked Connect Your Application.

    The following Atlas screenshot shows the connection option buttons:

    ../_images/connection-method.png

    Follow the instructions for your driver language and version.

    In the Choose your connection method step in the modal, select the button marked Connect Your Application.

    The following Atlas screenshot shows the connection option buttons:

    ../_images/connection-method.png

    Follow the instructions for your driver language and version.

    In the Choose your connection method step in the modal, select the button marked Connect Your Application.

    The following Atlas screenshot shows the connection option buttons:

    ../_images/connection-method.png

    Follow the instructions for your driver language and version.

    In the Choose your connection method step in the modal, select the button marked Connect Your Application.

    The following Atlas screenshot shows the connection option buttons:

    ../_images/connection-method.png

    Follow the instructions for your driver language and version.

    Summary

    If you have successfully completed this guide, you will now have your IP address in the Atlas whitelist, and an Atlas connection string in your copy buffer.

    What’s Next