0

how to run angular5 app from another machine?

commands which I have tried

ng serve --host 192.168.56.1 --disable-host-check

ng serve --host 192.168.56.1

ng serve --host 0.0.0.0

ng serve --port 8080 --host 0.0.0.0 --disableHostCheck true

I have already seen this. not helping though. my angular/cli version : 1.5.5

Humble Dolt
  • 940
  • 2
  • 16
  • 31
  • Possible duplicate of [How to test an app created with Angular CLI ng serve from another device?](https://stackoverflow.com/questions/39069742/how-to-test-an-app-created-with-angular-cli-ng-serve-from-another-device) – Hasan Fathi Jan 16 '18 at 08:55

1 Answers1

0

If your other device is in the same network, you can access ng serve with :

ng serve --port 8080 --host 0.0.0.0 --disableHostCheck true

value "0.0.0.0" should allow you to access the webserver from any device on your local network.

But i hope port 8080 is open on your firewall

Léo R.
  • 2,620
  • 1
  • 10
  • 22