Simply run HOST=0.0.0.0 npm run start
.
Afterwards open the url from another device on the network.
In your case, 192.168.0.5:3000
would work.
Documentation for setting HOST environment variables.
More Related Contents:
- ‘npm start’ returns error: “There might be a problem with the project dependency tree”
- create a trusted self-signed SSL cert for localhost (for use with Express/Node)
- npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
- How to build a production version of React without minification?
- Can’t connect to MongoDB 6.0 Server locally using Nodejs driver
- Get version number from package.json in React Redux (create-react-app)
- Cannot find module coa/compile.js
- NodeJS – What does “socket hang up” actually mean?
- Why does mongoose always add an s to the end of my collection name
- Cannot install node modules that require compilation on Windows 7 x64/VS2012
- How do I prevent node.js from crashing? try-catch doesn’t work
- What exactly is a Node.js event loop tick?
- NodeJS base64 image encoding/decoding not quite working
- Get file name from absolute path in Nodejs?
- Mongoose update without callback
- What does middleware and app.use actually mean in Expressjs?
- How to download file with puppeteer using headless: true?
- Error: Redis connection to 127.0.0.1:6379 failed – connect ECONNREFUSED 127.0.0.1:6379
- What’s wrong with nodejs crypto decipher?
- How to define object in array in Mongoose schema correctly with 2d geo index
- Express.js req.ip is returning ::ffff:127.0.0.1
- Call a “local” function within module.exports from another function in module.exports?
- Scaling Node.js
- Cannot uninstall angular-cli
- “Cannot use import statement outside a module” with Axios
- Check for current Node Version
- libsass bindings not found when using node-sass in nodejs
- Nodejs Child Process: write to stdin from an already initialised process
- How npm start runs a server on port 8000
- How random is crypto#randomBytes?