Ashu Ashu - 5 days ago 7
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

Use host option when serving your app.

ng serve --host=10.0.0.30

Comments