1. 程式人生 > >[轉]如何將Angular localhost:4200 改為IP

[轉]如何將Angular localhost:4200 改為IP

ali uci color tco .net its style vertica code

本文轉自:https://blog.csdn.net/ygznx/article/details/78249118

ust specify the IP in --host option like ng serve --host 192.16.1.1

Now you can visit http://192.16.1.1:4200 in your browser and it will work

下面是一個例子:

ng serve --host 192.168.1.102 --port 4201

.

[轉]如何將Angular localhost:4200 改為IP