Foreword:
After we have completed the development of the socket communication program and set the IP address, we can first use some means to test whether the network between the two computers is smooth. If the network is confirmed to be smooth, we can then test the Socket program we wrote. .
1. Press the Windows key + "R" key on the keyboard at the same time, as shown below:
The following two pictures show the conditions of the two keyboards, and the "Run" window can pop up.
2. Enter "cmd" in the window, and then click "OK", as shown below:
After clicking "OK", a black window will pop up.
3. Enter ping+space+the other party’s IP address
For example, enter: ping 127.0.0.1,