pymongo.errors.ServerSelectionTimeoutError with atlas even when added to network access

@sadru Go to Mongo db atlas dashboard
Select your current project
click on Network Access (left side menu)
In the “IP Access List” tab
Make sure you don’t have an old dynamic IP of your machine set there
Or you can add 0.0.0.0/0 (includes your current IP address) to access from anywhere

7 Likes