MongoNetworkError: connection to <your MongoDB Atlas cluster address> closed

Hello @saka_oluwasola and welcome to the community!

Have you tried connecting with mongosh? This is the simplest health check for the network connection.