Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open port 3000 on AWS

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:

In bound: In bound

Out bound: Out bound

like image 990
Ankur_009 Avatar asked Dec 13 '25 23:12

Ankur_009


1 Answers

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!

like image 76
Kush Vyas Avatar answered Dec 16 '25 22:12

Kush Vyas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!