Hosting Django Server in port 8000 and accessing it from ip address

Anmol Nanda 0 Reputation points
2024-02-23T17:25:33.23+00:00

Hello I went to django manage.py runserver 0.0.0.0:8000 which runs server perfectly but i am unable to acess it from azure public ip address as mentioned on both network interface or virtual machine eg: http://

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
570 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,159 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 54,646 Reputation points
    2024-02-23T21:20:02.0866667+00:00

    Hi Anmol,

    You need to make sure that you have a rule to open 8000 set up in a NSG or Azure Firewall. Go to your Resource Group that your server resides in > and find your NSG:

    User's image

    Go to Inbound security rules > +Add

    User's image

    Then change your Destination port ranges to 8000 and you can customize your source to your IP address or you can allow Any if you want anyone to be able to access this server.

    User's image

    Create the rule, then try to access your server.

    If this is helpful please accept answer.

    0 comments No comments