What would “restart the project” mean? I’m not sure I understand this terminology.
Are you trying to access from your desktop? Is your computer’s IP not changing? Isn’t there a firewall in between that could be preventing the connection?
i am running my project in my desktop using vsCode.
Restart means whenever i restart my computer and run my project again.
Yes i do have firewall in my computer i use windows 11
i used to off the firewall then restart my project it get connected to mongoDB but now this hack is also not working
You are unable to resolve the cluster’s DNS. You don’t even get to Atlas. It is possibly a problem with your computer’s resolution. When you disable the firewall does it still not work?
You cannot ping a cluster because it is not an host with an IP address.
What you may do is ping the hosts of your replica set. You may get the list of hosts of your replica set directly in Atlas. DNS for a cluster has 2 types of records. A TXT record and SRV records. For your cluster we get
id 54082
opcode QUERY
rcode NOERROR
flags QR RD RA
;QUESTION
cluster0.b1p7eko.mongodb.net. IN ANY
;ANSWER
cluster0.b1p7eko.mongodb.net. 60 IN TXT "authSource=admin&replicaSet=atlas-cyxfww-shard-0"
cluster0.b1p7eko.mongodb.net. 60 IN SRV 0 0 27017 ac-uk99ezp-shard-00-00.b1p7eko.mongodb.net.
cluster0.b1p7eko.mongodb.net. 60 IN SRV 0 0 27017 ac-uk99ezp-shard-00-01.b1p7eko.mongodb.net.
cluster0.b1p7eko.mongodb.net. 60 IN SRV 0 0 27017 ac-uk99ezp-shard-00-02.b1p7eko.mongodb.net.
;AUTHORITY
;ADDITIONAL
The ac-*-b1p7eko.mongodb.net are the 3 hosts of your cluster.