I am trying to access the local host for my ubuntu server hosted on ec2 when I run
python manage.py runserver 0.0.0.0:8000
I have my security setting set to
port 80 0.0.0.0/0
and I want to access
http://ec2-somenumber.us-west-2.compute.amazonaws.com:8000
currently it doesn't work in the command line, the app is currently running in port 8000
I ran
ubuntu@ip-somenumber:~/hello$ python manage.py runserver 0.0.0.0:8000
Validating models...
0 errors found
April 25, 2014 - 23:41:00
Django version 1.6.3, using settings 'hello.settings'
Starting development server at http://0.0.0.0:8000/
and checked
netstat -nao | grep 80
returns
tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN off (0.00/0/0)
udp6 0 0 :::18280 :::* off (0.00/0/0)
unix 2 [ ACC ] SEQPACKET LISTENING 6800 /run/udev/control
unix 3 [ ] STREAM CONNECTED 6780
I also ran
ufw allow 8000
service ufw restart
but neither accessing the public dns or public ip
using the public ip
54.186.231.88:8000
or the public dns
ec2-54-186-231-88.us-west-2.compute.amazonaws.com:8000
worked
What could be the problem?
Thanks, any help would be greatly appreciated