Database (Cluster at Atlas) connection from other Host

Hello everyone,

I would like to connect to MongoDB Atlas from a website. I do not know the IP of the website or the server.

I do the whole thing via React and host the site at Netlify.

How do I connect to the database?
I have searched and searched and think I am using the wrong search term.

How can I connect a page to MongoDB whose host IP I don’t know?

Thank you very much

I have translated the question