Not able to connect MongoDB Atlas in my local machine. Also ping cluster0.f5fhncm.mongodb.net is not working.

info: :rocket: Server running on port 3000 {“timestamp”:“2025-07-17T09:28:19.208Z”}
info: :open_book: Environment: development {“timestamp”:“2025-07-17T09:28:19.209Z”}
error: :x: Database connection failed: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you’re trying to access the database from an IP that isn’t whitelisted. Make sure your current IP address is on your Atlas cluster’s IP whitelist: Configure IP Access List Entries - Atlas - MongoDB Docs {“timestamp”:“2025-07-17T09:28:49.345Z”}
[nodemon] app crashed - waiting for file changes before starting…

Also ping is not working.
C:\Windows\System32>ping cluster0.f5fhncm.mongodb.net
Ping request could not find host cluster0.f5fhncm.mongodb.net. Please check the name and try again.

I have tried with IP setting.( 0.0.0.0/0) Also I have used VPN. Still facing the issue.

With almost 100% certainty it’s something in your network setup. Windows firewall? Remote port blocked? Etc.

1 Like

Ping does not work with those cluster addresses, by the way. Working as designed!

2 Likes