In settings of iPhone->; In WLAN, you can see the name of the currently connected wifi. Click the details button on the right to see the details of the currently connected wifi, including IP address, subnet mask and other information. At the bottom, there is an "HTTP proxy" item. Let's switch to manual first, and then fill in the IP and port number 8888 of the computer Charles is running.
Weak network testing puts values on the same network segment:
What happened after running "ping 192.5438+068.0.5" on host A? First, the Ping command will build an ICMP request packet with a fixed format, and then the ICMP protocol will hand this packet to the IP layer protocol together with the address "192. 168.0.5". The IP layer protocol takes the address "192. 168.0.5" as the destination address and the local IP address as the source address.
Add some other control information to construct an IP packet, and try to get the MAC address of 192. 168.0.5 (the physical address is necessary for the data link layer protocol to construct the data link layer-frame transmission unit), so as to hand it over to the data link layer to construct a data frame. Here's the key. The IP layer protocol passes the IP address of machine B and its own subnet mask.