My MongoDB Atlas database is not communicating with any IP except Localhost

I have been stuck in the last few days for MongoDB CRUD operation. My production level deployment cannot communicate with MongoDB atlas but at the same time, my localhost is able to do CRUD operation. My network access is available for any IP like 0.0.0.0/0.

All of my applications fall into the same problem. I am reset and restore my mongoDB but the problem still remains. what could I do?

Please guide what should I do.

I am reset and restore my mongoDB but the problem still remains.