title: MongoDb connection refused
body: <p>This is my first attempt to consume MongoDB. I've got Mongo running:</p>
  
  <pre><code>ps -ef | grep [m]ongo
  mongodb  11023  1  0 Jun24 ? 00:00:03 /usr/lib/mongodb/mongod --config /etc/mongodb.conf
  </code></pre>
  
  <p>And the error comes as the result of doing</p>
  
  <pre><code>Datastore.save( stuff );  // (pseudo code)
  </code></pre>
  
  <p>The error:</p>
  
  <blockquote>
  <pre><code>Jun 27, 2011 3:20:29 PM com.mongodb.DBTCPConnector fetchMaxBsonObjectSize
  WARNING: Exception determining maxBSON size using0
  java.io.IOException: couldn't connect to [russ-elite-book/127.0.1.1:27017] bc:java.net.ConnectException: Connection refused
      at com.mongodb.DBPort._open(DBPort.java:206)
      at com.mongodb.DBPort.go(DBPort.java:94)
      at com.mongodb.DBPort.go(DBPort.java:75)
      at com.mongodb.DBPort.findOne(DBPort.java:129)
      at com.mongodb.DBPort.runCommand(DBPort.java:138)
      ...
  </code></pre>
  </blockquote>
  
  <p>Note that I'm using <em>127.0.0.1:27017</em> for my connection, which works to the Mongo shell. Also, I get the admin page in the browser using <em><code>http://localhost:28017</code></em>.</p>
  
  <p>Profuse thanks for any and all ideas!</p>