xxxxxxxxxx
You can run mongo shell without any command-line options to connect to a MongoDB instance running on your localhost with default port 27017:
xxxxxxxxxx
mongo --username alice --password --authenticationDatabase admin --host mongodb0.examples.com --port 28015