======== In code mode, there is no command line format, so I have to use java to replace the command under CMD =============
ping IP
Such as: ping 192.168.1.110
This command is used to check whether the network is connected. The format is as follows:
ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl] [-v tos] [-r count] [-s count] [-j computer-list] | [-k computer-list] [-w timeout] destination-list
The commonly used parameters are listed below:
-t When this parameter is added, it will continue to ping the other party's host until you press ctrl + c
Such as: ping 192.168.1.110 -t
-n is used to specify the number of packets to send count, such as 10 times
Such as: ping -n 10 192.168.1.110
telnet IP port
Such as: telnet 192.168.1.110 10000
This command is used to check if the port on the remote server is open
If the command cannot be found, open the Control Panel -> Programs and Features -> Turn Windows Features On or Off , and check the telnet client (take win7 as an example)