Reputation: 1245
I have my django application on ec2 instance. I am able run it on ec2 instance on localhost:8000. When I try to access that django application from outside of that ec2 instance, it doesn't show me "this site can't be reached". It is pinging
Upvotes: 0
Views: 1310
Reputation: 9931
I see that you are running on localhost so it is not accessible from outside. Try running your server with command below and try to access with your server ip.
$ python manage.py runserver 0.0.0.0:8000
Go to your http://server-ip:8000
Upvotes: 6
Reputation: 10876
try to do telnet on that server on port 8000 and see if it works.
did u open port 8000 from security groups or not ! Most probably it is this issue.
Upvotes: 0