socket.io can't connect when clients are on different wifi (ip address) on my self-configured ubuntu nginx server, but works perfectly fine on a pre-configured heroku server
this is my nginx config
upstream dirtyfinger {
    ip_hash;
    server localhost:3000;
    server localhost:3001;
    server localhost:3002;
    server localhost:3003;
}
server {
    listen 80;
    location / {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_pass "http://dirtyfinger/";
    }
}