user2129623
user2129623

Reputation: 2257

How to enable port 5000 on aws server?

I checked all the questions that are related to allowing port on AWS EC2 and I have tried the following:

sudo ufw allow 5000

sudo iptables -A INPUT -p tcp --dport 5000 -j ACCEPT

Also added the port to AWS SG as shown below

Outbound Configs AWS SG Outbound Config

Inbound Configs AWS SG Inbound Config

Still when I open my website it says:

This site can’t be reached

Am I missing anything? Are above rules are correct and secure?

Upvotes: 1

Views: 8286

Answers (1)

Mostafa Hussein
Mostafa Hussein

Reputation: 11950

The Inbound SG configs needs to be modified. As the image you have posted does not show that you allow 5000 in your AWS SG. So in this case you wont be able to access that port from outside unless you allow it in your security group that i assume it is attached already to your EC2 instance

Upvotes: 4

Related Questions