0

Description

I am using a virtual machine with the Ubuntu image. I tried to run my server on Django with this command python manage.py runserver 0.0.0.0:8000.

When I search <public ip>:8000 it fails to load.

Inbound Port rules

Port Rules

Firewall

I used this tutorial for my firewall: https://youtu.be/Sa_kQheCnds?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p&t=1632

2 Answers2

1

You have only allowed incoming traffic to port 8000 from a single IP address. It looks like you put your Azure VM's IP address in as the source. So only the VM can access itself on port 8080.

You need to be loading the web app from that IP address, or change the IP address to your actual IP address, or allow any source.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
0

Aside from Michael's answer, please keep in mind that Network Security Groups only affect Azure.

You'll also need to allow inbound traffic in your VM's local firewall.

Massimo
  • 70,200
  • 57
  • 200
  • 323