I’m trying to connect to my MongoDB atlas cluster with Compass.
This is my uri:
But after 10s trying to connect, I get the error:
querySrv ETIMEOUT _mongodb._tcp.boursogame-9eaqw.mongodb.net
I have found this solution on stack overflow (https://stackoverflow.com/questions/56334603/cant-connect-to-mongodb-atlas) wich worked for me, so here is my second uri that work for connecting via Compass :
But now I want to connect via a nodejs application and I can’t make it work. I don’t really understand what I’m doing wrong. I tried on an other computer and I made it works easily with the first uri. Help?
Ps: All IP are whitelisted (0.0.0.0) and my port 27017 is open (tryed on portquiz.net:27017)