Client network socket disconnected before secure TLS connection was established 2

Hello, i don’t know what to do:

C:\Users\christophe.machu>mongosh “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl -u m121 -p aggregations --norc
WARNING: argument --ssl is deprecated and will be removed. Use --tls instead.
Current Mongosh Log ID: 6255768a90a1bd1f8392012f
Connecting to: mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?replicaSet=Cluster0-shard-0&appName=mongosh+1.3.1
MongoServerSelectionError: Client network socket disconnected before secure TLS connection was established

Hi @chris_Machu, welcome to the community.
Can you please confirm that you have added your IP address to IP Access List in Network Access tab of Atlas menu?
Also, please make sure that you are not using any firewall.
Once that is done, please try to connect again.

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer

in fact it was because of my VPN, when I cut VPN it’s ok

1 Like