I am not able to connect with my cluster using my application or MongoDB atlas.
Did you change the username and password just for the screenshot?
Since the screenshot show:
username = user1
password = <password>
Hi @Yasin_Memon and welcome to the MongoDB Community.
Your screenshot shows a timeout error. Have you whitelisted the IP address where you are running your code? If not, you can read more in the documentation.
Yes just for screenshot I’ve changed it.