Hi Avinash_41186,
If your ping is working fine that you means you can access the host (cluster0-shard-00-00-jxeqq.mongodb.net), but there is problem connecting to 27017 port, please check on clicking this. It should show something like this:
Outgoing port tester
This server listens on all TCP ports, allowing you to test any outbound TCP port.
You have reached this page on port 27017 .
Your network allows you to use this port. (Assuming that your network is not doing advanced traffic filtering.)
Network service: unknown
Also, can you go to your browser and try http://cluster0-shard-00-00-jxeqq.mongodb.net:27017/ . The output should be:
It looks like you are trying to access MongoDB over HTTP on the native driver port.
If you are still not able to connect, please check if this port is getting used by any other application. Make the port 27017 free and restart Compass and try logging in again.
For any other error, I would recommend going through this thread: About the Chapter 1: Compass Connection
Thanks, Kanika