DEV Community

AkshayKumarC132
AkshayKumarC132

Posted on

How to create Public URL in Django Project to access in Other Machines

I'm working Django Project.

  1. How to create a Public IP permanently for Localhost(127.0.0.1:8000) IP in Django Project.
  2. After Creating Public URL, how to allow access for Other users without Source Code.

when I run python manage.py runserver x.x.x.x:8088 in command prompt it is generating a URL with specified IP address. But when I share/open this URL with others it is not working

Can any one help me to configure this issue.

Thanks in advance.

Top comments (1)

Collapse
 
dilutewater profile image
Rachit Khurana

Because that will only host it on your localhost (your computer only).

If you want to allow other people to access it, ythen you need to enable port forwarding in your network and router. But that has many security risks.

Or if you want a simpler route , you can try tunneling services like ngrok, cloudflared tunnel, pagekite tunnel, localexpose, loophole. Once you start these services, they will give you a temporary url that anyone can access.

If you need more help, feel free to contact me.