angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng serve method ip not open in another machines

Open sivaprabug opened this issue 10 years ago • 26 comments

OS?

Windows 8

Versions.

Could not start watchman; falling back to NodeWatcher for file system events. Visit http://ember-cli.com/user-guide/#watchman for more info. angular-cli: 1.0.0-beta.16 node: 6.6.0 os: linux ia32

After instal angular-cli for below step

npm install -g angular-cli

ng new PROJECT_NAME

cd PROJECT_NAME

After given below command

ng serve

http://localhost:4200 and http://127.0.0.1:4200 is working on same machine only if i open that machine ip with other machine means not opening. How to open the webpage in another machines, like that machine ip is 10.88.186.126 means how to open this url http://10.88.186.126:4200 in other machines browsers in the N/W.

sivaprabug avatar Oct 06 '16 05:10 sivaprabug

Run angular 4 project with this cmd ng serve --host yourIPaddress i.e. ng serve --host 192.168.33.178

Balajishivankar avatar May 30 '18 05:05 Balajishivankar

I get the option '--disable-host-check' is not registered with the serve command. Run `ng serve --help` for a list of supported options.

vnextcoder avatar Jun 26 '18 12:06 vnextcoder

You guys are superb, i am noob in angular, been looking this answer for few days. Thanks a lot :)

rizz5091660 avatar Jul 07 '18 08:07 rizz5091660

"serve": { "host": "0.0.0.0", "port": 4201 }

I want to know Angular CLI: 6.2.1 how to config the angular.json ?

debugly avatar Oct 17 '18 10:10 debugly

on "serve" put somthing like "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "host": "0.0.0.0", "browserTarget": "m3front:build", "proxyConfig": "proxy.conf.json" }, "configurations": { "production": { "browserTarget": "m3front:build:production" } } } .....

wdavilaneto avatar May 06 '19 22:05 wdavilaneto

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.