Cell phone connection webpack-dev-server in the local localhost?

problem: pc is currently connected to the company"s local area network, and the local webpack-dev-server has been set to host:"0.0.0.0". The mobile phone is connected to the wifi, shared by the PC side to access the PC side ip address + project address can not be successful.

check that pc and mobile phone do not seem to be in the same network segment, this is why?


what is the "PC ip address" you visit? The common network connected between your PC and your mobile phone is a small local area network shared by PC. Your phone can only access PC, through the ip of PC in this local area network instead of PC's public ip or PC's ip in other Lans. Generally speaking, your PC is the gateway of this local area network. Please use the ipconfig command to check the specific ip.


the PC side shares wifi,. At this time, pc also owns the ip, of the company's local area network and acts as the gateway of wifi. So, check the gateway of the wifi connected to your phone, and then visit http:// gateway : 8080

.
Menu