Unable to connect to port 8000 on Azure

Unloading Gnat asked:

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

My answer:


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.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.