Mobile hybrid development front-end and back-end separation project, how the app can access the local server on the phone

Since I made a mobile hybrid development project that separated the front and back ends, I summarized how to access the local server on the mobile phone.

1. Enter CMD and enter the command ipconfig /all

Insert picture description here

2. The IPv4 address in the last wireless network card is the local area network address

Insert picture description here

3. Modify the address to the local area network address and pack it

Note: When visiting, the computer is on wifi, and the mobile phone is connected to the computer wifi.

Guess you like

Origin blog.csdn.net/weixin_43553142/article/details/105870375