Port 27017 closed for security reasons

Welcome to the cloud and SaaS. As per the link the circumstances where the IP addresses change are limited.

You are connecting to atlas as a client, that is an outbound connection. The server will not be initiating a connection to your client/server.

1 Like