'Live camera feed is not working on ip address of wifi router on django server

I have a django server setup and I want to access the website from an android device for testing. The webpage consist of live camera feed. Here's the html code for the camera feed.

<canvas id="camera--sensor"></canvas>        
<video id="camera--view" autoplay playsinline></video>        
<img src="//:0" alt="" id="camera--output">        
<button id="camera--trigger">Take a picture</button> 

Now when i run python manage.py runserver, the camera feed is visible in the localhost. But on running python manage.py runserver wifi_ip:port_no, the camera feed is not working. Is there anything i can do to make it work? Any advice is appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source