project run on
localhost:4200
but it does not run on (which is my localhost)
10.0.0.30:4200
need to install angular cli ?
I think you only need to edit your package.json file
"scripts": {
"ng": "ng",
"rimraf": "rimraf",
"changelog": "standard-changelog",
"start": "ng serve --host 10.0.0.30", <==== add --host XX and you are all set.
"start:hmr": "ng serve --hmr",
"start:aot": "ng serve --aot",
"start:prod": "ng serve --prod",
"start:prod:aot": "ng serve --prod --aot",
"build": "npm run clean:dist && ng build",
"build:prod": "npm run build -- --prod",
after that you run npm start, it will listen on the IP address you specified.
Most helpful comment
I think you only need to edit your package.json file
after that you run npm start, it will listen on the IP address you specified.