Local area network access problems and computer control of mobile phone display

1. The data cable connects the mobile phone and the computer, and the mobile phone is set to the development mode

2. After connecting the data cable, follow the computer prompts to install the driver installed

3. Install chrome on the phone

4. Open Chrome on the computer , enter about:inspect  in the address bar and  select the checkbox in front of [Discover USB Devices] . The following screen appears (click to enlarge):

5. Enter the address on the computer and click on the open phone to respond

Note: The place to enter the address on the computer side requires the mobile phone to open the chrome browser. If you have not turned off the chrome on the computer and then enter about:inspect  , the display of the mobile phone is controlled through the computer (the mobile phone does not need to enter it by yourself ). address )

6 , local area network access problems

   1 , apache sets ip address access:

Open the Apache configuration file httpd.conf, this file is found in the Apache installation file, and then find the content

#   onlineoffline tag - don't remove   

    Order Deny,Allow   

   Deny from all   

  Allow from 127.0.0.1  


Explain what it means, Order Deny, Allow are sorted by deny and allow, Deny from all deny access from all, Allow from 127.0.0.1  allows access from 127.0.0.1 .


Add # before Deny from all    to comment out this line, and add a line of Allow from 192.168.1.*   after Allow from 127.0.0.1  . Modified as follows: 

#   onlineoffline tag - don't remove   

    Order Deny,Allow   

#   Deny from all   

  Allow from 127.0.0.1  

Allow from 192.168.1.*

Adding this line means that all hosts in the network segment 192.168.1 can access their own server.

 1.2 Modify  Listen 8080

 

2 : Open httpd-vhosts.conf in port settings httpd.conf

Modify the E:\xampp\apache\conf\extra\httpd-vhosts.conf file in the apache directory , add monitoring on port 8080 , and configure the jump domain name of the website as follows:

listen 8080

... ...

#www.myweb.cn

<VirtualHost *:8080>

# ServerAdmin [email protected]

DocumentRoot "E:/xampp/www/myweb"

ServerName 192.168.8.28

ErrorLog "logs/192.168.8.28.cn-error.log"

CustomLog "logs/192.168.8.28.cn-access.log" combined

</VirtualHost> 

3. If it doesn't work, modify the firewall

 1 , inbound rules ( 8080 )

 2 , the port that allows external orientation ( 8080 ) can go here

网络-属性-windows防火墙-设置软件通过防火墙--私用和公用,全部改成公用就可以了。(这个根据操作系统不同只要防火墙开放了8080即可)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326360951&siteId=291194637