How to access local resources through local IP address in WeChat when the local server has no external network?

WBOY
Release: 2016-07-06 13:51:45
Original
2218 people have browsed it

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?

How to access local resources through local IP address in WeChat when the local server has no external network?
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 How to access local resources through local IP address in WeChat when the local server has no external network?

Reply content:

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?

How to access local resources through local IP address in WeChat when the local server has no external network?
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 How to access local resources through local IP address in WeChat when the local server has no external network?

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template