Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to use nodejs and socket.io to deliver a webapp, which use websocket on port 3000.

I have opened port 3000 on my EC2 instance in my management console by adding the inbound TCP rule to the relevant security group, however I still can't access it via public dns on my browser.

sudo netstat -tulpn doesn't show it as an open port.

What am I missing? Is there some service I need to restart or a command line I need to push to get it running?

Thanks

share|improve this question
add comment

1 Answer 1

Is the port open on the node server?

iptables -A INPUT -p tcp -m tcp --dport 3000 -j ACCEPT

Check both iptables and SElinux entries

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.