title: mongodb.conf bind_ip = 127.0.0.1 does not work but 0.0.0.0 works
body: <p>I could not understand what <code>bind_ip</code> in mongodb is. I could make a remote connection from desktop to the EC2 machine by having <code>bind_ip = 0.0.0.0</code>, but could not make it work with <code>bind_ip = 127.0.0.1</code>.</p>
  
  <p>Please explain me what bind_ip is and why it works for <code>0.0.0.0</code> and not for <code>127.0.0.1</code>.</p>
  
  <p>For reference from <a href="http://docs.mongodb.org/v2.2/reference/configuration-options/#bind_ip" rel="noreferrer">mongodb docs</a>:</p>
  
  <blockquote>
    <p><code>bind_ip</code></p>
    
    <p>Default: All interfaces.</p>
    
    <p>Set this option to configure the mongod or mongos process to bind to and listen for connections from applications on this address.
    You may attach mongod or mongos instances to any interface; however,
    if you attach the process to a publicly accessible interface,
    implement proper authentication or firewall restrictions to protect
    the integrity of your database.</p>
    
    <p>You may concatenate a list of comma separated values to bind mongod to multiple IP addresses.</p>
  </blockquote>