Starting new port on Amazon Ec2 free tier for socket io

Problem

I am using Amazon EC2 service for the web purpose. I have a web application which is hosted on apache i.e port 80. Now i am running a node instance on port 3000 and when i load my website.

 io.connect('http:IP ADDRESS:3000');

This code tries to connect to my port. On server side my instance is started. But when i load my we application, this doesnt connect to server.

I was wondering do i need to update my configuration or is there any network settings i need to do ?

Problem courtesy of: insomiac

Solution

Try adding your port in your defined security group.

Follow http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/using-network-security.html#concepts-security for more reference.

Solution courtesy of: Andy

Discussion

There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.