title: Mongolab refuses connections
body: <p>I'm working on a Python program that submits data to Mongolab, and I'm running across a strange exception:</p>
  
  <pre><code>mongoengine.connection.ConnectionError: Cannot connect to database mongodb://&lt;user&gt;:
  &lt;password&gt;@ds035617.mongolab.com:35617/&lt;mydatabase&gt;:
  could not connect to localhost:27017: [Errno 10061] No connection could be made
  because the target machine actively refused it
  </code></pre>
  
  <p>This is the offending code:</p>
  
  <pre><code>from mongoengine import *
  connect('tablename', "mongodb://&lt;user&gt;:&lt;password&gt;@ds035617.mongolab.com:35617/&lt;mydatabase&gt;")
  </code></pre>
  
  <p>Anyone have any ideas as to what is wrong?</p>