2016-11-24 64 views
0

每當我在角2項目目錄,我看到下面的控制檯響應線運行npm startAngular2 npm start:什麼是訪問URL?

Access URLs: 
    ------------------------------------ 
     Local: http://localhost:3000 
    External: http://10.28.93.96:3000 
    ------------------------------------ 
      UI: http://localhost:3001 
    UI External: http://10.28.93.96:3001 
    ------------------------------------ 

是什麼本地和外部這裏的區別?

回答

1

根據我的理解,在你的本地機器上你可以使用這兩個url。但是,如果你想測試在不同的機器(例如iPad,手機或其他桌面應用程序),然後,你必須使用:

UI External: http://10.28.93.96:3001 

只。但是如果有防火牆,那麼你不能使用它。因此請嘗試使用同一網絡或更改網絡設置。