I am always getting connection failed in connecting mongodb atlwas evenly after allowing IP in atlas

I am always getting connection failed in connecting mongodb atlas evenly after allowing IP in atlas.

HI @bhavesh.goyal01 and sorry that you’re struggling to connect to MongoDB.

To connect to external systems over the internet, which I’m assuming you’re doing, two things need to happen:
a. in Foundry, add egress policies corresponding to your MongoDB instance on your data connection. This is to allow network calls to exit the Foundry VPC network. You can read more about Egress Policies in Data connection here
b. allowing Foundry IPs in Atlas, so that it doesn’t reject network calls coming from Foundry

From your message it sounds like you have done b. but maybe not a. ?