title: Unable to connect to any port other than 22 (ssh) AWS
body: <p>I have an ubuntu instance on AWS and I run mongod on the server. The mongod has bind ip set to 0.0.0.0 and verified using netstat. </p>
  
  <pre><code>sudo netstat -nltp
  Active Internet connections (only servers)
  Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
  tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1055/sshd
  tcp        0      0 0.0.0.0:27017           0.0.0.0:*               LISTEN      1049/mongod
  tcp6       0      0 :::22                   :::*                    LISTEN      1055/sshd
  </code></pre>
  
  <p>I have also set security group rules on AWS EC2 console such that inbound connections from my public ip on port 27017 are allowed. I am not able to connect from my laptop to the mongod (27017).</p>
  
  <pre><code>telnet ec2-&lt;ip-removed&gt;.compute-1.amazonaws.com 27017                    1 ↵
  Trying &lt;ip-removed&gt;...
  telnet: connect to address &lt;ip-removed&gt;: Operation timed out
  </code></pre>
  
  <p>However I have no problem connecting to ssh on port 22 from my laptop</p>
  
  <pre><code>telnet ec2-&lt;ip-removed&gt;.compute-1.amazonaws.com 22                    130 ↵
  Trying &lt;ip-removed&gt;...
  Connected to ec2-&lt;ip-removed&gt;.compute-1.amazonaws.com.
  </code></pre>
  
  <p>This setup was working fine a week ago and suddenly my laptop client refuses to connect to the mongo. I tried another service on port 6800 with inbound rules set and bind ip set to 0.0.0.0/32 it is also not able to connect. I have no other rules set, nor do I have iptables or firewall on the instance.</p>
  
  <p>I have also tried rebooting the server, no luck there.</p>
  
  <p>Also connecting to mongo from the server itself works</p>
  
  <pre><code>ubuntu@aws$ telnet localhost 27017
  Trying 127.0.0.1...
  Connected to localhost.
  </code></pre>