title: Open a HTTP port on Amazon EC2
body: <p>I have a Tomcat 7 instance running on port 8080, and would like to run Jenkins on a different port. Another alternative would be to change the Jenkins URL.</p>
  
  <p><strong>How do I add an entry to the list of allowed ports?</strong></p>
  
  <p>I have tried running: <code>sudo /sbin/iptables -A INPUT -p tcp --dport 8181 -j ACCEPT</code>, but in the AWS console it shows only these ports:</p>
  
  <pre><code>0 - 65535       0.0.0.0/0
  22 (SSH)        0.0.0.0/0
  80 (HTTP)       0.0.0.0/0
  443 (HTTPS)     0.0.0.0/0
  3306 (MYSQL)    0.0.0.0/0
  8080 (HTTP*)    0.0.0.0/0
  </code></pre>
  
  <p>Is it possible to add a HTTP port (8181) via the AWS console?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I already tried adding a custom TCP port, but then it doesn't get the HTTP protocol, and when I select HTTP, I can't specify the port!</p>