MongoDB server IP address


I am having some problems connecting to the database from a server hosted at fastcoment and they asked me about the MongoDB server IP address so they can check more. Is there I way I can find out which is the IP address of the server where my DB is located?

Hi @Ioana_Catalina_E - welcome to the forums!

You can find the details around the MongoDB server hostname in the connection string your application uses to connect to the database (See this docs page for details -

You can then use nslookup or a similar tool to determine what the IP of the server is based on it’s hostname.

Hope this helps and if you want to try out this commands, you can always use Atlas’s Free Tier to create a cluster and then test these commands mentioned to see how it works before checking your other server.

Kindest regards,