Mobile phones cannot be accessed through ip during vue-cli development

Mobile cannot be accessed through ip during vue-cli development
configuration is shown in the following figure:

I have also tried to change host to "0re0j0j0j0j0j0jinghejinghe PC, but the mobile phone (the same local area network) can not be opened, and neither mobile phone nor pc has an agent. Do you encounter this kind of situation in Mac environment?

Mar.22,2021

disableHostCheck:true 

1. Make sure your phone is in the same network environment as pc.
2. Change localhost to ip to start the service in your configuration. There is no problem with this configuration. Why can't you access it?
3. If it is the windows environment, I have asked you to change the inbound rules of the firewall.


most likely it is the problem of the network. It will be fine again without changing any code and configuration today. Thank you for your answers.

Menu