Reputation: 2837
Here's how I try running my dev server (I've tried this with and without sudo, just to make sure):
python manage.py runserver ec2-##-##-###-##.compute-1.amazonaws.com:8000
Here's my iptables listing:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:8000
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere state ESTABLISHED
Here's how I try calling it in my browser: ec2-##-##-###-##.compute-1.amazonaws.com:8000/
Any idea what's up? I'm using an Ubuntu micro instance.
Upvotes: 1
Views: 1636
Reputation: 19563
EC2 uses a firewall system called security groups that exist outside of the instance. Ports need to be open in the security group to access them from outside. You can change the rules via API or with the EC2 console.
Upvotes: 3