In your config/server.js file, change the host ip directly or through environment variables like :
module.exports =
({ env }) = > ({
port: env.int('MYPORT','Your default value if your port not
accessible'),
host: env('MYHOSTIP','default value'),
});
Now in your .env create your variables:
MYPORT=8080
MYHOSTIP=192.168.172.112
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…