상황 
분명히 집에서 개발을 하는 경우에는 연결이 되는 것을 확인하였습니다. 하지만 근처 카페에 가서 개발을 하려는 도중 에러가 발생하였습니다.

- MongoDB Error

ERROR MongooseServerSelectionError: 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: https://docs.atlas.mongodb.com/security-whitelist/

이유
집에서의 IP와 카페의 IP가 달라서 발생한 에러

해결 

cloud.mongodb.com 에 접속하여 SECURITY/ Database Access 현재 IP주소를 설정해주면 해결

+ Recent posts