I did a search for everything I could find on the internet, but nothing helps. What could be the mistake? Perhaps I am not correctly identifying the host?
MongoDB shell version v4.4.1
I installed Mongo using brew
I have macOS Big Sur 11.0.1
in default configuration mongod always running in the background on port 27017 as service
So you just issue mongo to connect
But if you want to connect a mongod running on a different port firt you need to bring up your mongod
mongod --port 30000 --dbpath provide_valid_path --logpath provide_valid_path
Please check documenation for various options like auth etc
Once mongod is up you can check with ps -ef|grep mongod
You will see mongod process
Then you can connect with
mongo --port 30000