1. Turn off the firewall
service iptables stop
2. Setting up django
When opening open django, use 0.0.0.0:xxxx, as ip and port for example:
python runserver 0.0.0.0:9000
Then change ALLOWED_HOSTS = [] in settings.
Change to ALLOWED_HOSTS = ['*',], being careful not to leave out the ",".
Other machines will be able to access django from this machine's ip and port number.
for example:http://192.168.14.40:9000/
Above this django allow external access to the example of the explanation is all I have shared with you, I hope to give you a reference, and I hope you support me more.