title: amazon beanstalk tcp app not responding
body: <p>i am running a nodejs tcp app at my aws linux ec2 instance . the basic code is given below </p>
  
  <pre><code>var net = require('net');
  net.createServer(function(socket){
  socket.write('hello\n');
  
  socket.on('data', function(data){
      socket.write(data.toString().toUpperCase())
    });
  }).listen(8080);
  </code></pre>
  
  <p>and its run like charm, but i wanted to run this same app at aws beanstalk (just to get the benefit of auto scaling). ya ya i am not aws ninja. by the way to get the public ip at beanstalk i use aws VPC.</p>
  
  <ol>
  <li>beanstalk app connect to VPC = checked.</li>
  <li>VPC 8080 port open = checked .</li>
  <li>change hard coded port 8080 to process.env.PORT = checked.</li>
  </ol>
  
  <p>but if i ping anything at port 8080 it does not return 'hello' from the application. what i am missing ?</p>