On a local server without an Internet connection, how does one access local resources through a local IP address in WeChat?

Source: Internet
Author: User
1. a website is deployed on the local server tomcat. the mobile terminal and the server are connected to the same LAN through WiFi, but the WiFi is not connected to the network cable, and the Internet cannot be accessed. How to access the service through a local IP address (such as 192.168.1.36busindex1.php...

1. a website is deployed on the local server tomcat. the mobile terminal and the server are connected to the same LAN through WiFi, but the WiFi is not connected to the network cable, and the Internet cannot be accessed. In this case, how can I access a website through a local IP address (such as http: // 192.168.1.36/bus/index1.php?

2. the LAN is not connected to the Internet, so that only service resources in the local Lan are provided.

3. after WiFi is connected to the Internet, direct access to the local IP address (http: // 192.168.1.36/bus/index1.php) can be normal. But why can't I use a local IP address to access the Internet after the network cable is unplugged?


For example, 192.168.1.36 is the ip address of my server, and the WiFi can access the internet. after the phone is connected to the WiFi, the ip address is 192.168.1.34. click the http link of 1.36 corresponding to the image, is accessible to the local server.

When I switch to a WiFi that cannot access the Internet, for example, if the server ip address is 192.168.5.4, and the mobile phone is switched to the WiFi address, the ip address is 192.168.5.8. at this time, click the http link of 5.4 corresponding to the image, the local service cannot be accessed, that is, the page cannot be opened.

Reply content:

1. a website is deployed on the local server tomcat. the mobile terminal and the server are connected to the same LAN through WiFi, but the WiFi is not connected to the network cable, and the Internet cannot be accessed. In this case, how can I access a website through a local IP address (such as http: // 192.168.1.36/bus/index1.php?

2. the LAN is not connected to the Internet, so that only service resources in the local Lan are provided.

3. after WiFi is connected to the Internet, direct access to the local IP address (http: // 192.168.1.36/bus/index1.php) can be normal. But why can't I use a local IP address to access the Internet after the network cable is unplugged?


For example, 192.168.1.36 is the ip address of my server, and the WiFi can access the internet. after the phone is connected to the WiFi, the ip address is 192.168.1.34. click the http link of 1.36 corresponding to the image, is accessible to the local server.

When I switch to a WiFi that cannot access the Internet, for example, if the server ip address is 192.168.5.4, and the mobile phone is switched to the WiFi address, the ip address is 192.168.5.8. at this time, click the http link of 5.4 corresponding to the image, the local service cannot be accessed, that is, the page cannot be opened.

Is it useful to external resources?
What are the error messages that cannot be accessed?

I have always developed a mobile phone in the same network segment (or connected to the same vro) as this machine.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.