Home > Article > Backend Development > How to access local resources through local IP address in WeChat when the local server has no external network?
1. A website is deployed in the local server tomcat. The mobile terminal and the server are connected to the same LAN through WiFi. However, the WiFi is not connected to a network cable and cannot access the external network. So how to access the website through local IP (such as: http://192.168.1.36/bus/index1.php) in WeChat?
2. The LAN is not connected to the external network. The purpose is to only provide users with service resources within the local LAN.
3. When WiFi is connected to the external network, you can access local services normally by directly giving the local IP (http://192.168.1.36/bus/index1.php). But why can’t I access the external network through the local IP address after unplugging the network cable?
For example, 192.168.1.36 is the IP of my server, and this WiFi can access the external network. After the mobile phone is connected to the WiFi, the IP is 192.168.1.34. Click the 1.36 http link corresponding to the picture. , you can access the local server content.
When I switch to a WiFi that cannot access the external network, for example, the server IP becomes 192.168.5.4, and the mobile phone also switches to this WiFi, and the IP is 192.168.5.8. At this time, click on the 5.4 http link corresponding to the picture. You cannot access local services, that is, you cannot open the page
1. A website is deployed in the local server tomcat. The mobile terminal and the server are connected to the same LAN through WiFi. However, the WiFi is not connected to a network cable and cannot access the external network. So how to access the website through local IP (such as: http://192.168.1.36/bus/index1.php) in WeChat?
2. The LAN is not connected to the external network. The purpose is to only provide users with service resources within the local LAN.
3. When WiFi is connected to the external network, you can access local services normally by directly giving the local IP (http://192.168.1.36/bus/index1.php). But why can’t I access the external network through the local IP address after unplugging the network cable?
For example, 192.168.1.36 is the IP of my server, and this WiFi can access the external network. After the mobile phone is connected to the WiFi, the IP is 192.168.1.34. Click the 1.36 http link corresponding to the picture. , you can access the local server content.
When I switch to a WiFi that cannot access the external network, for example, the server IP becomes 192.168.5.4, and the mobile phone also switches to this WiFi, and the IP is 192.168.5.8. At this time, click on the 5.4 http link corresponding to the picture. You cannot access local services, that is, you cannot open the page
Is it useful to use external resources?
What is the error message that cannot be accessed?
The mobile phone must be on the same network segment as the machine (or connected to the same router). This is how I have always developed it