php - Xiaomi router, under the same LAN, how can a mobile phone and a computer access local services opened through xampp on the computer through the computer's IP address at the same time?
怪我咯
怪我咯 2017-06-05 11:07:48
0
1
686

Question: I want to use a mobile phone and a computer to access local services enabled on the computer through the computer IP address at the same time. Because I am a front-end, I need to adapt the page to mobile terminals.

  1. 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:

2. The above situation is in the office, everything is normal, but when I return home, the situation is different. The mobile phone cannot access it, and the router at home is a Xiaomi router

打开window cmd  看到的ip地址 为 192.168.31.185 ,

用这个 ip地址在电脑本机上 访问 xampp 开启的本地服务也是可以的,

但是用手机却不行了,手机的 ip地址 为 192.168.31.51

Is this a problem with the Xiaomi router or some other reason?

重要的事情说三遍:1.手机和电脑是处在同一无线网络下
                 2.手机和电脑是处在同一无线网络下
                  3.手机和电脑是处在同一无线网络下
怪我咯
怪我咯

走同样的路,发现不同的人生

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!