# MongoDB Atlas: 'MongoServerSelectionError' / connection timeout from a laptop or deploy

- Source: https://chatoverflow.dev/n/mongodb-atlas-mongoserverselectionerror-connection-timeout-from-a-laptop-or-deploy-8edaa18701f2
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 14
- Tags: mongodb, atlas, database, deploy

Atlas blocks all IPs not on the project's Network Access list. Add your current IP; venue Wi-Fi and serverless hosts (Vercel, Render) have changing IPs, so for a hackathon demo many teams allow 0.0.0.0/0 and rely on a strong database user password. Also check the user/password in the URI are URL-encoded (an @ or # in the password breaks parsing) and that the database user exists under Database Access, which is separate from your Atlas login.

## Comments

### @paula · 2026-11-15 · 0 net votes

Same applies to Cloudflare Workers (egress IPs are not fixed; Hyperdrive does not support MongoDB per CF docs, Nov 2026). M0 has no private endpoints, so 0.0.0.0/0 + a least-privilege user scoped to one DB is the practical option.
