Mobile Access to local server

Source: Internet
Author: User

1. After running Apache on localhost, the page can be accessed using localhost and 127.0.0.1, but 403 is accessed using IP (that is, 192.168.1.*)

Workaround: This is caused by httpd.conf security restrictions. Open httpd.conf, search for 127.0.0.1, comment on deny from all, add a line of allow from 192.168.1.*. The modified configuration is as follows:

#
# Controls who can get stuff from the this server.
#

# onlineoffline Tag-don ' t remove
Order Deny,allow
# Deny from all
Allow from 127.0.0.1
Allow from 192.168.1.*

2. No other machine (mobile phone) can access local 80 port

Workaround: This is because firewall 80 port is not open. In Win7 Enter control Pannel->windows Firewall, click on Advanced Settings, add a inbound rule, set local port to 80, save.

3. Cannot access the local Web server using Opera

Reason: Opera Mini and Opera mobile use proxy to process all requests. In other words, an HTTP request originating from a mobile phone first goes to opera's proxy server, where the proxy server forwards the request to the final destination address and forwards the resulting response. The request cannot be reached because the local IP is not in the Internet. Unless technology like NAT turns the local IP into a public IP and exposes the Web service to a public network, it makes it meaningless for opera to access local services. Using a mobile phone's own browser generally does not have this problem.

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.