title: Error when using mongoose.connect on AWS EC2 server
body: <p>I've installed Node, express, and mongodb all successfully. I can run mongo in my terminal and it starts correctly. I can also see data i've manually stored. </p>
  
  <p>Locally, I was using mongoose.connect('mongodb://localhost:27017/test'); and I had no issues. On my EC2 I used mongoose.connect('mongodb://ipaddress:27017/test'); but it's failing.
  <strong>Error: failed to connect to [ipaddress:27017].</strong></p>
  
  <p>ipaddress is an actual ip address not a string or variable.</p>
  
  <blockquote>
    <p>mongo<br>
    show dbs  &lt;-- this shows my databases so I know it's running!</p>
  </blockquote>
  
  <p>I've looked online for a few hours and have come up short! I'm sure it's a simple setting i've missed.</p>
  
  <p>On my EC2 i'm allowing all connections on all port ranges. 
  What am I missing?</p>
  
  <p>Thanks!</p>