Mongo Network Error

I am trying to connect to Mongo shell, this is the error am receiving (“MongoNetworkError: Client network socket disconnected before secure TLS connection was established”)

Hello @Ibrahim_Ahmed1 ,

Welcome to The MongoDB Community Forums! :wave:

Can you please confirm if you are trying to connect to MongoDB Atlas?
If yes, then please confirm if you have added your IP address to IP Access List in Network Access tab of Atlas menu?
Also, please make sure that any firewall is not causing this network issue.
Once that is done, please try to connect again.

Let me know if this works! :slight_smile:


Am trying to connect to mongo compass, but it keeps showing me to add current IP address.