<ip-address>should be your ip address and is exclusive of http protocol (http://orhttps://).
settings.py [in dev mode.]
....
DEBUG = True
ALLOWED_HOSTS = ['<ip-address>']
....
- runserver django server with
./manage.py runserver <ip-address>:8000 - edit your
webpack.config.jsfile
webpack.config.js [in dev mode.]
....
host: '<ip-address>',
disableHostCheck: true,
port: 9000
....
- edit your
src/config.tsfile
src/config.ts [in dev mode.]
....
export const API_URI = "http://<ip-address>/graphql/";
....
- runserver dashboard server as usual.
- also you might need to allow external request with
ufw sudo ufw allow <port-number>in this case9000.
Reference
