MongoServerSelectionError: connect ETIMEDOUT

i face this error when i connect cloud db :- MongoServerSelectionError: connect ETIMEDOUT

Have you whitelisted your IP?

yes i whitelisted my IP But not work it

it show me this error:-

Express server is up and running on port 5000
we encountered MongoServerSelectionError: connect ETIMEDOUT
C:\Users\Irfan Ansari\Desktop\IssueTracker\node_modules\mongodb\lib\sdam\topology.js:293
const timeoutError = new error_1.MongoServerSelectionError(Server selection timed out after ${serverSelectionTimeoutMS} ms, this.description);

MongoServerSelectionError: connect ETIMEDOUT
at Timeout._onTimeout (C:\Users\Irfan Ansari\Desktop\IssueTracker\node_modules\mongodb\lib\sdam\topology.js:293:38)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7) {
reason: TopologyDescription {
type: ‘ReplicaSetNoPrimary’,
servers: Map(3) {’ => ServerDescription {
address: ‘’,
type: ‘Unknown’,
hosts: ,
passives: ,
arbiters: ,
tags: {},
minWireVersion: 0,
maxWireVersion: 0,
roundTripTime: -1,
lastUpdateTime: 619568,
lastWriteDate: 0,

Then it could be ISP issue
Are you using VPN/antivirus/proxy/firewall?
Disable them and see if you can connect
Try from a different network

i use windows 10 and in its already set VPN and firewall on and proxy off .

since you say turn off VPN, proxy, and firewall so i did it but not connected till now.

and you say it could ISP issue but yes i think so it would be untill not understand how to solve it.

pls visit this link . his quest. like my quest. and i don’t understand how they solve it.