Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Nikita-schetko/e39e75a2859dea0ff759866296b3a301 to your computer and use it in GitHub Desktop.
Save Nikita-schetko/e39e75a2859dea0ff759866296b3a301 to your computer and use it in GitHub Desktop.
Debug your angular app (ng cli) on a mobile when you are in a same wifi
First verify your machine IP Address.
On Windows, type ipconfig in Prompt (copy IPv4).
On Mac, type ifconfig |grep inet in Terminal (copy inet).
In my case this is 192.168.0.10.
Next, type ng serve --host 192.168.0.10.
Ok, your app on air for all devices on same network.
Now only http://192.168.0.10:4200/ will work, localhost not more.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment