Tente outra porta. 3000 deve funcionar.
Eu tenho um VPS (no linode) onde eu instalei o Node.JS.
Meu arquivo server.js é o seguinte:
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337);
console.log('Server running on port 1337');
Quando eu tento isso no meu servidor:
wget http://localhost:1337
Funciona e faz o download da resposta. Mas externamente, o Google Chrome está dizendo Oops! O Google Chrome não pôde se conectar a xxx.xxx.xx.xx: 1337
Esta é a saída dos Iptables:
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere loopback/8 reject-with icmp-port- unreachable
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT icmp -- anywhere anywhere
LOG all -- anywhere anywhere limit: avg 5/min burst 5 LOG level debug prefix 'iptables denied: '
DROP all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:4711
ACCEPT tcp -- anywhere anywhere tcp dpt:1337
ACCEPT tcp -- anywhere anywhere tcp dpt:1337
Chain FORWARD (policy ACCEPT)
target prot opt source destination
DROP all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp spt:1337
Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
O que poderia estar errado? Obrigado!