title: Can't start mongod with config file
body: <p>I installed mongodb on windows 8.1</p>
  
  <p>then I use command promp to navigate to D:\mongodb\bin</p>
  
  <p>then I use this command </p>
  
  <pre><code>mongod.exe --config D:\mongodb\mongodb.conf
  </code></pre>
  
  <p>The content of mongodb.conf</p>
  
  <pre><code>bind_ip = 127.0.0.1,100.100.100.100
  port = 3979
  quiet = true
  dbpath = D:\mongodb\data\db
  logpath = D:\mongodb\data\log\mongodb.log
  logappend = true
  journal = true
  </code></pre>
  
  <p>But mongod doesn't start. If I use mongod.exe (without using config file), it works perfectly </p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>My intention is simple: change default port to another port and only allow access from certain IP addresses.</p>
  
  <p>I was using the configuration for Ubuntu. Thanks to Panda_Claus that pointed out the new configuration. </p>
  
  <p>So I changed the configuration to </p>
  
  <pre><code>net:
     bindIp: 127.0.0.1,100.100.100.100
     port: 3979
  </code></pre>
  
  <p>The problem is, when I start mongod with this configuration, it got error then automatically exits</p>
  
  <pre><code>ERROR: listen(): bind() failed errno:10049 The requested address is not valid in its context. for socket: 100.100.100.100:3979
  </code></pre>
  
  <p>So how do I allow only localhost and a specific IP address (in this case is 100.100.100.100) to connect to mongodb?</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>I used the configuration from maerics</p>
  
  <pre><code>net:
    bindIp: 127.0.0.1,192.168.10.104
    port: 3979
  storage:
    dbPath: D:\mongodb\data\db
    journal:
      enabled: true
  systemLog:
    destination: file
    path: D:\mongodb\data\log\mongodb.log
    quiet: true
    logAppend: true
  </code></pre>
  
  <p>Interestingly, using this, I can only connect to db on local machine, other LAN computer can't connect to </p>
  
  <pre><code>192.168.10.104:3979. 
  </code></pre>
  
  <p>However, if I remove the </p>
  
  <pre><code>systemLog:
    destination: file
    path: D:\mongodb\data\log\mongodb.log
    quiet: true
    logAppend: true
  </code></pre>
  
  <p>other computers in LAN network are able connect to the database.</p>