My local ip accesses my vue project, which can be opened in a computer browser, but not on my phone? Other projects are OK, but this project is not good. Mobile phones can still access it a few days ago.

problem description

use my local ip to access my vue project, which can be opened in a computer browser, but not on my phone? Other projects can, but not this one. Mobile phones can still access it a few days ago.

the environmental background of the problems and what methods you have tried

the host of the configuration file index.js has been modified to "0.0.0.0". It has been restarted countless times, but it is useless. Mobile phone access is blank ye

.
Aug.11,2021

phone and computer must be on the same network segment


host change to local ip


Let me show you the configuration information in my project for your reference. I have also found this kind of situation in you. My solution is to turn off the firewall and restart the project. I hope it works for you.

{
    // ...
    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 0.0.0.0",
    // ...
}

have you solved it? I have the same problem

.
Menu