You need to bind the IP address to `` or `localhost`

After changing the mongod.config file for lab, I ran “validate_lab_configuration_file”, but I am getting this back "You need to bind the IP address to or localhost" …why? is it an error?

Here is my config file:


for documentation of all options, see:

Where and how to store data.

dbPath: “/data/db”
enabled: true




where to write logging data.

destination: file
logAppend: true
path: “/data/log.mongod.log”

network interfaces

port: 27000
bindIp : “,”

how the process runs

fork : true





Enterprise-Only Options:



authorization: enabled


Same error as many others. Try to consult previous thread before starting a new one.

The problem is: space between the 2 addresses for bindIp:

1 Like

got you…yes, that is the problem and it is fixed!

In that case there is an error in the example in Chapter 1: The Mongod - Lecture: Configuration File. It has a space between the IP’s after the comma.

eg: bindIp : “,”

So in reality this should be:

bindIp : “,”

Any chance that it will be corrected for future reference?


Hi Sandor_34399,

Thanks for the note. We will soon update the lecture notes.


1 Like

Thank you @Kanika

Actually, the video still contains the space character. I’m not that a C&P guy, but type the commands by myself, to absorb them better. I actually should have taken a look in the descriptions below the video. But now, it took me an hour of fiddeling and searching before I found this thread.

Please update the video “M103 Lecture: Configuration File” or at least make a good visibility hint, to prevent future students from that pit trap.

Hi @Nico_75327,

I can understand your frustration :pensive:

However, sometimes even after having space between Bind IPs, mongod process starts using configuration file.

I will definitely check if using space causes an issue and update the lecture notes accordingly.

Please let me know, if you have any questions.


1 Like

Everything’s fine. Such things happen and my only motivation to give you that feedback, is to help improving your courses, which are already pretty damn good.

1 Like