Reputation: 3710
I have seen many questions related or same as mine but I am not able to get the right answer.
I am developing the node js application and hosted on AWS. But I am not able to open the port 3000.
I am checking if the port is open or not using the following command:
netstat -ntlp | grep LISTEN
Security group:
Upvotes: 3
Views: 5435
Reputation: 6079
Assuming NACL , Security Group and IP Tables are configured correctly.
I had faced similar problem with Node Once and Double Checked every setting , at last I found out A node service has to be attached to that port in order for it to work.
Even if the port is open it will not show open when you ping unless you have service attached to it.
You Can try something like http.createServer(app).listen(3000)
Hope it Helps!
Upvotes: 1
Reputation: 1043
You could have a look at your NACL; http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html
Im assuming you have it running on an EC2 instance, if there is a firewall on the OS that allows port 3000?
Upvotes: 0