From: Siddharth Ravichandran on
Its actually an EC2 security groups issue. You need to ensure if the
instance security groups has the port 5222 open. If your working with
Server-2-Server then you should have 5269 open too.

The way to get that done on elastic fox is click on the security groups
click on the group permissions, grant permission button (green tick
button) and add the port. For host add 0.0.0.0/0 to allow all.

And thats it. Hope this is useful to someone. I can't believe I missed
this.
--
Posted via http://www.ruby-forum.com/.