Mongodb atlas host and port
Docs Home → MongoDB Atlas Show Atlas does not guarantee that host names remain consistent with respect to node types during topology changes. ExampleIf you have a cluster named To access a database deployment, you must connect from an IP address on the Atlas project's IP access list. If you need to add an IP address to the IP access list, you can do so in the Connect dialog. You can also add the IP address from the Network Access tab. To access a database deployment, you must create a database user with access to the desired database(s) on your Atlas database deployment. Database users are separate from Atlas users. Database users have access to MongoDB databases, while Atlas users have access to the Atlas application itself. You can create a database user to access your Atlas database deployment in the Connect dialog. You can also add the database user from the Database Deployment view. Make sure your application can reach your MongoDB Atlas environment. To add the inbound network access from your application environment to Atlas, do one of the following:
TipSee also:If your firewall blocks outbound network connections, you must also open outbound access from your application environment to Atlas. You must configure your firewall to allow your applications to make outbound connections to ports 27015 to 27017 to TCP traffic on Atlas hosts. This grants your applications access to databases stored on Atlas. NoteBy default, MongoDB Atlas clusters do not need to be able to initiate connections to your application environments. If you wish to enable Atlas clusters with LDAP authentication and authorization, you must allow network access from Atlas clusters directly to your secure LDAP. You can allow access to your LDAP by using public or private IPs as long as a public DNS hostname points to an IP that the Atlas clusters can access. If you are not using VPC / VNet peering and plan to connect to Atlas using public IP addresses, see the following pages for additional information:
NoteIf you are experiencing issues connecting to your database deployment, see Troubleshoot Connection Issues. TipSee also:
Navigation You were redirected from a different version of the documentation. Click here to go back.
Note Groups and projects are synonymous terms. Your Get a single MongoDB process by its hostname and port combination. You can specify either the primary hostname or an alias. Base URL: Resource¶GET /groups/{PROJECT-ID}/hosts/byName/{HOSTNAME}:{PORT} Request Path Parameters¶
Request Query Parameters¶The following query parameters are optional:
Request Body Parameters¶This endpoint doesn’t use HTTP request body parameters. Response¶
Example Request¶curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \ --header "Accept: application/json" \ --include \ --request GET "https://cloud.mongodb.com/api/public/v1.0/groups/{PROJECT-ID}/hosts/byName/server1.example.com:27017?pretty=true" Example Response¶Response Body¶
Note Although Cloud Manager returns muninEnabled in the response, Munin is unsupported. How do I find my MongoDB host and port?By default, MongoDB starts at port 27017. But you can access it in a web browser not at that port, rather, at a port number 1000 more than the port at which MongoDB is started. So if you point your browser to http://localhost:28017, you can see MongoDB web interface.
What is MongoDB Atlas host?Overview. MongoDB Atlas provides an easy way to host and manage your data in the cloud. This tutorial guides you through creating an Atlas cluster, connecting to it, and loading sample data. You can get started with Atlas through the Atlas CLI or the Atlas User Interface.
Where is MongoDB Atlas connection URL?Choose Connect Your Application.. Choose your driver and driver version. ... . Copy the generated connection string. ... . Whitelist your IP address. ... . Click on Add current IP address. ... . Are you connecting from another IP address, through a VPN, or getting errors?. Is MongoDB UDP or TCP?MongoDB uses TCP as its transport layer protocol. The predefined default port for connection is 27017.
|