mongodb
network_error
ai_generated
true
MongoServerSelectionError: connection refused by Atlas IP whitelist
ID: mongodb/atlas-connection-whitelist
88%Fix Rate
90%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 7 | active | — | — | — |
Root Cause
MongoDB Atlas rejected connection from non-whitelisted IP.
genericWorkarounds
-
92% success Add current IP to Atlas Network Access whitelist
-
88% success Use VPC peering or private endpoints for production
Dead Ends
Common approaches that don't work:
-
Allow all IPs 0.0.0.0/0
82% fail
Security vulnerability
-
Whitelist dynamic IPs individually
75% fail
Breaks on IP change