Solution to the problem that ping cannot access the target host: 1. Check whether there is a problem with the local connection of the network cable or whether the interface is plugged into a peer; 2. Check whether the firewall is turned off; 3. Check the gateway of the local machine. Is it right.
Solution to the problem that ping cannot access the target host:
1. Check whether the network cable is connected normally. Whether the interface is aging, whether there is any disconnection, etc.
#2. Turn off the firewall. The security policy of the firewall may prevent mutual access between this machine and other computers, and may also cause the target host to fail to ping.
#3. If the gateway is filled in incorrectly, the target host cannot be accessed. You can think of the gateway as the IP address of the router to which your computer is connected. The method to set the default gateway is to right-click on "Network Neighborhood" and click "Properties" in the pop-up menu, or right-click the network icon in the lower right corner (open the Network and Sharing Center), and then click Local Area Connection
4. Select "TCP/IP Protocol" in the network properties dialog box, and then set a static IP address. (If DHCP assigns an IP address, you can prioritize issues such as firewalls).
5. Finally, you can try to ping your own machine, or ping whether the external network is connected.
The above is the detailed content of Can't ping the target host?. For more information, please follow other related articles on the PHP Chinese website!