title: how to connect another machine mongodb database inside local network ?
body: <p>I follow this mongoose document <a href="http://mongoosejs.com/docs/connections.html" rel="noreferrer">enter link description here</a></p>
  
  <pre><code>mongoose.connect('mongodb://localhost/waterDB');
  </code></pre>
  
  <p>Using This, I can connect local machine <code>waterDB</code>mongoDB DataBase</p>
  
  <p>My Personal Machine Local IP : <code>192.168.1.5</code></p>
  
  <p>My Server Machine Local IP : <code>192.168.1.100</code></p>
  
  <p>Both machine have <code>waterDB</code> DataBase . There is no username and password for both DB </p>
  
  <p>I wanted to connect Server Machine <code>waterDB</code> Inside My Personal Machine.</p>
  
  <p>According To This : <code>mongoose.connect('mongodb://username:password@host:port/database?options...');</code></p>
  
  <p>I try : <code>mongoose.connect('mongodb://192.168.1.100:27017/waterDB');</code></p>
  
  <p>But, </p>
  
  <pre><code>MongoError: failed to connect to server [192.168.1.100:27017] on first connect
  at null.&lt;anonymous&gt; (/home/water/node_modules/mongodb-core/lib/topologies/server.js:313:35)
  at emitOne (events.js:77:13)
  at emit (events.js:169:7)
  ..........
  </code></pre>
  
  <p>Any solution for err ?</p>
  
  <p>Thank (@_@)</p>