vue-cli can`t be run with ip adrees

Created on 27 Nov 2017  路  5Comments  路  Source: vuejs/vue-cli

A Vue project create by vue-cli can be run with 'localhot:8080' but can not be run with ip adrees, why?

Most helpful comment

localhost doesn't allow external access from our network. That'S why it's the default setting, it's secure.

Set the host to 0.0.0.0, then other computers in the network can access it via your local IP.

All 5 comments

what kind of IP address?

such as "http://192.168.1.101:8080"

localhost doesn't allow external access from our network. That'S why it's the default setting, it's secure.

Set the host to 0.0.0.0, then other computers in the network can access it via your local IP.

Firewalls can be trouble too. I had to disable the Firewall of Windows to use that feature.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chasegiunta picture chasegiunta  路  3Comments

Akryum picture Akryum  路  3Comments

JIANGYUJING1995 picture JIANGYUJING1995  路  3Comments

sanderswang picture sanderswang  路  3Comments

OmgImAlexis picture OmgImAlexis  路  3Comments