title: AWS Port in Security Group but Can't Connect
body: <p>I have a Security Group that has 80, 443, 22, and 8089. </p>
  
  <pre><code>Ports  Protocol   Source    security-group
  22      tcp      0.0.0/0      [check]
  8089    tcp      0.0.0/0      [check]
  80      tcp      0.0.0/0      [check]
  443     tcp      0.0.0/0      [check]
  </code></pre>
  
  <p>However, when I test the connection using a Python program I wrote:</p>
  
  <pre><code>import socket
  import sys
  
  s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  p = sys.argv[1]
  try:
      s.connect(('public-dns', int(p)))
      print 'Port ' + str(p) + ' is reachable'
  except socket.error as e:
      print 'Error on connect: %s' % e
  s.close()
  </code></pre>
  
  <p>However, I'm good with all ports but 8089:</p>
  
  <pre><code>python test.py 80
  Port 80 is reachable
  python test.py 22
  Port 22 is reachable
  python test.py 443
  Port 443 is reachable
  python test.py 8089
  Error on connect: [Errno 61] Connection refused
  </code></pre>