Ashu Ashu - 1 year ago 133
Javascript Question

Angular cli project dont run with ip address

Angular cli project run on

localhost:4200


but it does not run on
(which is my localhost)

10.0.0.30:4200


how to run this , with ip address so that i can use it on other system as well.

Answer Source

Use host option when serving your app.

ng serve --host=10.0.0.30