Lab - Launching Mongod HostNotFound

Here is the task:

  • run on port 27000
  • data files are stored in /data/db/
  • listens to connections from the IP address 192.168.103.100 and localhost
  • authentication is enabled

I issued

mongod --bind_ip locahost,192.168.103.100 --auth --port 27000

and get the error

 W  NETWORK  [initandlisten] Found no addresses for HostNotFound: Could not find address for locahost:27000: SocketException: No such host is known.
 E  STORAGE  [initandlisten] Failed to set up listener: SocketException: The requested address is not valid in its context.

I know our server is running on port 27017. So why the lab ask to connect to 27000 then?

Sorry. Forgot to run in the shell. Now it is working.

Closing this thread as the issue has been resolved.