How to find mongodb server ip

Issue

I am creating a MERN stack app. Right now I need to get the MongoDB server IP. They suggest using nslookup tools to get the IP address. Can anyone suggest me how to do that?
What thing should be added after nslookup?

Solution

You have to add your mongodb server cluster URI after it.

Example:

nslookup ds-shard-00-00-17jcm.mongodb-dev.net

Here is more information:
https://www.mongodb.com/docs/atlas/reference/faq/networking/

Answered By – saibot-tsch

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published