Under LAN, another machine to access the local Vue project

It is of course the local Vue project started normally, while other machines to access this program, you need to do some settings.

method one

A search online there, index.js under the config directory under the root directory of the project, the host of value to: 0.0.0.0.

Method Two

If a method does not work, of course, it may be a firewall issue, but does not consider turning off the firewall, consider the local machine to increase inbound rules, how to join a good online search to the rules of the stack. Into the firewall, advanced settings, create inbound rules, the port tomcat of the project to allow connections.

Method Three

If a method, second method does not work, try changing the URL foreground cost ip access background wording, rather than 127.0.0.1.

Released two original articles · won praise 0 · Views 12

Guess you like

Origin blog.csdn.net/weixin_46320353/article/details/104674972