How to make an Amazon EC2 instance listen to the 5000 port via HTTP?

Asked

Viewed 199 times

2

An instance EC2 Ubuntu that has installed Nodejs with an app that responds on port 5000 with the Node command.

I started the Nodejs node app.js through the terminal (ssh) and tried to access through the browser through meupublicDNS:5000 but it doesn’t work.

I couldn’t set up port 5000 in security group. How to set up this port?

  • You tried to set up your security group’s inbound by creating a custom TCP pointing to port 5000 and allowing the range 0.0.0.0/0 at source?

  • exact... it worked. put her answer.

  • Done, success!

1 answer

2


Set your Security Group’s Inbound Rule to Custom TCP at port 5000, also add the range 0.0.0.0/0 in the Source to free access to any ip in your application.

  • It seems you know a lot about Amazon services. I’m learning. add me there on your facebook. https://www.facebook.com/igoralves1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.