Prerequisite: The computer and mobile phone are in the same wireless network environment
电脑通过,xampp 开启本地服务,然后用 本地ip地址访问本地服务内的文件:
手机和电脑的ip地址如下图所示:
On the tp-link router in the office, I can achieve the effect I want,
That is, the mobile phone and computer can access the locally enabled services through the IP address on the windows cmd command in the above picture at the same time, as shown in the figure:
打开window cmd 看到的ip地址 为 192.168.31.185 ,
用这个 ip地址在电脑本机上 访问 xampp 开启的本地服务也是可以的,
但是用手机却不行了,手机的 ip地址 为 192.168.31.51
重要的事情说三遍:1.手机和电脑是处在同一无线网络下
2.手机和电脑是处在同一无线网络下
3.手机和电脑是处在同一无线网络下
Try turning off Windows Firewall