C# Socket communication from entry to proficiency (10) - How to detect whether the network between two computers is smooth

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.
Insert image description here

Insert image description here
Insert image description here

2. Enter "cmd" in the window, and then click "OK", as shown below:

After clicking "OK", a black window will pop up.
Insert image description here
Insert image description here

3. Enter ping+space+the other party’s IP address

For example, enter: ping 127.0.0.1,

Guess you like

Origin blog.csdn.net/qq_34059233/article/details/134426951