How do I enable port 80 on AWS?
To allow traffic on port 80 and 443, you must configure the associated security group and network access control list (network ACL).
How do you check if port is open on EC2?
From the EC2 Windows instance that is hosting the service, run the netstat command to display active connections and ports. 2. Perform a port test using Telnet or Test-NetConnection locally on the instance to confirm that the port can be connected to locally.
This is actually really easy:
- Go to the "Network & Security" -> Security Group settings in the left hand navigation
- Find the Security Group that your instance is apart of
- Click on Inbound Rules
- Use the drop down and add HTTP (port 80)
- Click Apply and enjoy
Some quick tips:
- Disable the inbuilt firewall on your Windows instances.
- Use the IP address rather than the DNS entry.
- Create a security group for tcp ports 1 to 65000 and for source 0.0.0.0/0. It's obviously not to be used for production purposes, but it will help avoid the Security Groups as a source of problems.
- Check that you can actually ping your server. This may also necessitate some Security Group modification.
-
Check what security group you are using for your instance. See value of Security Groups column in row of your instance. It's important - I changed rules for default group, but my instance was under quickstart-1 group when I had similar issue.
- Go to Security Groups tab, go to Inbound tab, select HTTP in Create a new rule combo-box, leave 0.0.0.0/0 in source field and click Add Rule, then Apply rule changes.
For those of you using Centos (and perhaps other linux distibutions), you need to make sure that its FW (iptables) allows for port 80 or any other port you want.
See here on how to completely disable it (for testing purposes only!).
And here for specific rules