Created
August 12, 2019 08:44
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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