Local area network mobile phone access to the computer ip (vue startup project + port) is denied? The rest is fine.

A project started by vue-cli in a local area network. If you want to see the results on your mobile phone, localhost can visit

.

ip

node

and then change the vue port. Sure enough, none of the ports started by vuecli can be accessed through ip. Which setting is the problem?

Mar.06,2021

package.json script dev plus -- host 0.0.0.0 try


you can see this issue:
Server can't be accessed via IP

Menu