Recently made a website, want to use real phone access to debug, but the access is not prompted to connect, can not open the site, this is what reason, best not its solution, because the mobile phone is available through WiFi Internet, computer, although the Internet through a network cable, but all use the same router, and the authority has not made any restrictions. After a few steps of detection, finally found the cause, and solve the problem.
1. Test whether LAN can connect
The first step in testing is to test whether the LAN is connected. Another LAN computer is needed to test the test by pinging the native IP in the computer.
Network Connectivity Testing
The ability to ping means that the network is connected.
2, the detection of LAN can access to share
The method of testing access sharing is to access the machine on another computer in the LAN, and enter it directly on another computer:
\\192.168.1.15
Or
\\lenovo-pc
Where 192.168.1.15 is the native ip,lenovo-pc is the computer name of the machine.
If you can access it, a window pops up asking you to enter your user name and password.
If you cannot access it, the probable cause is generally the following two:
1) Are there any settings for the computer login password? You cannot share without setting.
2) is the computer firewall open? Cannot be shared after it is opened.
According to the above two reasons, I checked each one, found that the firewall is open, so I closed the firewall.
Test again, and finally pop up the dialog that asks you to enter your computer login username and password.
LAN shared access
You can access the shared file once you have entered it.
3, test site can access
Then on the phone to visit the local site, and finally opened.
Cause analysis
The detection of the above steps can be determined, because the computer's firewall is turned on, causing the local area network computer can not access the local site. But what if you must open the firewall? Then you can add a "80" port to the firewall, that is, allow HTTP access.
Win2003 Firewall Add 80 port
The reason for the failure of the real phone to access the local computer website