ionic serve starts on localhost and not the server IP

后端 未结 2 1356
温柔的废话
温柔的废话 2021-02-15 15:00

When running ionic serve I see this:

  Gulp startup tasks: [ \'sass\', \'watch\' ]
  Running dev server: http://localhost:8100
  Running live reload server: http         


        
2条回答
  •  星月不相逢
    2021-02-15 15:52

    ionic address gives a list of addresses. Select one of them. E.g.:

    Multiple addresses available.
    Please select which address to use by entering its number from the list below:
     1) 10.0.0.9 (wlan0)
     2) 172.16.58.1 (vmnet1)
     3) 172.16.16.1 (vmnet8)
     4) localhost
    Std in before prompt
    Address Selection:
    

提交回复
热议问题