Prasad
Prasad

Reputation: 1245

Amazon EC2 instance pinging but django server is not accessible from outside

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

Answers (2)

Arpit Solanki
Arpit Solanki

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

Deepak Singhal
Deepak Singhal

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

Related Questions