This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the web-development category.
Last Updated: 2024-11-21
If you want to access localhost on your phone on the same network, run your server as 0.0.0.0 (not localhost or 127.0.0.1). Then get your machine's local IP address from ifconfig | grep 192
- e.g. 192.168.178.3. You can even fix this IP within the router so that your device's IP remains constant on this network and you can favorit it.
./mysite/manage.py runserver 0.0.0.0:8000