How to change the code so that the nodejs connects to a local database instead of a remote one on Atlas?

Please share any error messages you get. The message

is one of your application message. It would be nice to see the code that prints it.

Share the command you use to

Share the output of:

ss -tlnp
ps -aef | grep mongo
docker ps

What do you get if you remove ! from uri! in your call new MongoClient.

1 Like