Mongodb connection problem

hey guys i am getting this error from last day please help

> nodemon index.js

[nodemon] 2.0.22
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node index.js`
server is fucked running sucessfulloy on port 8000
Error while connecting with the database 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:
    at _handleConnectionErrors (/home/verma/medium1/server/node_modules/mongoose/lib/connection.js:792:11)
    at NativeConnection.openUri (/home/verma/medium1/server/node_modules/mongoose/lib/connection.js:767:11)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Connection (file:///home/verma/medium1/server/database/db.js:12:9) {
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      '' => [ServerDescription],
      '' => [ServerDescription],
      '' => [ServerDescription]
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-brwrks-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  code: undefined

Hi @sanjay_web,

Please refer to the following post : Server timed out when connect with mongoDB after upgrading in atlas

Perform the network tests mentioned there and advise the results as well as any other relevant information regarding the cluster.

Additionally, when you state “from the last day”, do you mean that the connection previously worked in the past?