Hey everyone,
I have a little problem with mongodb.
I use MongoDB Atlas (cloud google Belgium) for a web porject.
But I am in a public administration and it’s very securised. There is a firewall with whitelist IP adress.
So I need the IP adress of MongoDB Atlas to open the port and the IP adress and to use my cluster of my project.
For more details, the project is made with Node.js and I use mongoose.
This answer from @steevej shows how to lookup your hosts from the mongodb+srv uri.
From there resolve the hosts returned in the SRV records.
Do to the cloudy nature of Atlas I do not think you have any guarantees of the ips remaining as they are over the clusters lifetime. Happy to be corrected here.
This outline when the IPs change and when they do not.