mongodb+srv://sam:<password>@cluster0.tpvpc.mongodb.net/test
After changing the password and the ‘test’ name to my password and database, while connecting to my database from compass it throws this error.
Not just compass, also when am trying to connect from my application with its corresponding connection string, am having the same error.
The error which keeps on coming is :
querySrv EREFUSED _mongodb._tcp.cluster0.tpvpc.mongodb.net
I faced a similar issue while using MongoDB on Windows. What worked for me simply using a different internet connection. Like on switching to mobile hotspot it worked. Maybe there are some ISP level related
It’s possible that your college is blocking outbound connection towards port 27017. Please check with a 4G/5G connection maybe to see if this unlocks the situation. If this is the case, then you need to talk to the network admin.