title: mongodb installed in azure ubuntu cannot connect
body: <p>I am trying to connect to a mongodb database I installed on an Ubuntu VM on Microsoft Azure. I did the following:</p>
  
  <ol>
  <li>Created virtual machine.</li>
  <li>sudo apt-get mongodb (I connected to the VM with ssh).</li>
  <li>Created an Endpoint on the Azure Management Portal with both public and private ports set to 27017.</li>
  <li><p>When connected via ssh, running the mongo command allows me to view and access the data stored in the mongodb, but when done remotely, the connection fails with: </p>
  
  <p>Sat Oct 11 13:34:08.378 JavaScript execution failed: Error: couldn't connect to server   xxxxxx.cloudapp.net:27017 at src/mongo/shell/mongo.js:L114</p></li>
  </ol>
  
  <p>I think I am missing something pretty basic here. Hopefully someone out there can help me?</p>