I followed this guide (http://iconof.com/blog/how-to-install-setup-node-js-on-amazon-aws-ec2-complete-guide/) and installed node js, npm, forever, express, socket.io, and socket.io-client on my EC2 instance. I've opened up my security groups outbound & inbound traffic to allow pretty much all traffic over TCP, HTTP, HTTPS, UDP.
(ALL TCP TCP 0-65535 0.0.0.0/0) (HTTPS TCP 443 0.0.0.0/0)
var io = require('socket.io-client');
var socket = io.connect('https://plug.coinsetter.com:3000');
socket('connect', function (data) {
console.log(“Connected!”);
socket('levels room', '');
socket('last room', '');
});
socketCOINSETTER.on('levels', function (data){
///…
});
At home when I run the above code, everything works, but now porting to EC2 it doesn't work. My EC2 firewall settings are super loose, allowing all inbound and outbound traffic. I've tried disabling Linux's firewall (iptables...). No errors are thrown, but no connection is made either.