Adding to what @chris mentioned, I would recommend you check your network access on atlas portal and make sure you add the IP address from where you are trying to connect to the cluster using compass.
Adding to what @chris mentioned, I would recommend you check your network access on atlas portal and make sure you add the IP address from where you are trying to connect to the cluster using compass.