title: connection refused connecting to remote mongodb server
body: <p>So we've accumulated enough applications in our network that use MongoDB to justify building a dedicated server specifically for MongoDB. Unfortunately, I'm pretty new to mongodb (coming from SQL/MySQL derivatives). I have followed several guides on installing and configuring mongodb for my environment. None are perfect, but I think I'm close... I've have managed to get to a point that I can connect to the db server from the local server using the following command:</p>
  
  <pre><code>mongo -u user 127.0.0.1/admin
  </code></pre>
  
  <p>However, I'm NOT able to connect to the server using this from either the local OR a remote computer using it's network address, IE:</p>
  
  <pre><code>mongo -u user 192.168.24.102/admin
  </code></pre>
  
  <p>I've tried both with authentication enabled and disabled, and I've tried setting the bindIP to 192.168.24.102 and 0.0.0.0 with no love. Thinking it was a Firewall issue, I disabled the firewall entirely... same. no love...</p>
  
  <p>so what's the secret sauce? how do I connect to a MongoDB server remotely?</p>
  
  <p>Some notes to know: This server is on a local network only. There will be some NAT shenanigans at some point directing public traffic to it from remote application servers, but only specific ports (we will NOT be using 27017 when that happens) and it will sit behind a pretty robust firewall appliance, so I'm not worried about securing the server as I about securing MongoDB itself.</p>