Unable to connect to MongoDB

I’m unable to connect to Mongo DB using Compass:

Hostname: cluster0-shard-00-00-jxeqq.mongodb.net

Cred: m001-student / m001-mongodb-basics

Replica Set Name: Cluster0-shard-0

Read Preference: Primary Preferred

Add to Favorites" and enter M001 RS as the Favorite Name .

I am able to connect
What error are you getting?

I’m able to connect from home but not from office/work location.

@Nachiappan_80432,
You cannot connect from the work location, as the default port of mongodb will be in disabled mode.
So, you have the luck benefits from home only to practice the exercises.