I am learning from a MERN stack tutorial from youtube.
As you can see from the screenshot, I have already whitelist all IP address in Network Access page.
When I tried to connect from nodeJs server in my laptop there is an error message like screenshot below. I use driver version 2.2.12 or later - the old version - because version above 2.2.12 never works in my laptop :
Which mentions “one of common reason is IP isn’t whitelisted yet”
This confuses me because if I use the same version of connection string in my nextJs apps, it works just fine.
If I use newer version than 2.2.12, this is the error message :
And this is my server.ts file :