Pavan Kumar T S
Pavan Kumar T S

Reputation: 1559

unable to access Django server running on ubuntu instance AWS

I have Django project running on AWS with following configuration

ALLOWED_HOSTS = ['*']
python manage.py runserver 0.0.0.0:8000

aws security group configured to TCP 8000 to allow access from anywhere but am getting timeout when i access server using public ip xxx.xxx.xxx:8000 even tried with public dns but not connecting to django.when i check netstat its fine

tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN  

i tried after allowing port but no succcess

sudo ufw allow 8000

when i validate with port checker for xxx.xxx.xxx:8000 is seems to be open but curiously my apache2 at 80 is accessible using ip address

Upvotes: 2

Views: 882

Answers (1)

Mihir Dass
Mihir Dass

Reputation: 500

Verify your Network Access Control List applied at a subnet level to see if the appropriate traffic is allowed.

Upvotes: 1

Related Questions