title: Tomcat on AWS Elastic Beanstalk: Exposing multiple ports
body: <p>I have a Play 2.3.6 application that I deploy using a WAR file to Tomcat running on Elastic Beanstalk. The app exposes port 80 for normal HTTP. The app also exposes another port (2551), which it uses to build an Akka cluster. When deployed to AWS, though, the app is refused to connect to port 2551 on even localhost. Is it possible to expose multiple ports through Tomcat on Elastic Beanstalk?</p>
  
  <p>It should not be served through the servlet, rather it is a normal socket. And the akka port should not be exposed to the outside world (through the load balancer), just between EC2 instances.</p>