We can see:
Proto is a presentation protocol and there are two protocols (tcp, udp). We mainly use tcp in the above picture.
Local Address: indicates the IP address of the machine (which can be viewed by the command ipconfig), followed by the port number used.
Foreign address: indicates the IP address of the server connected to the outside and the port of the server.
State: indicates some specific state, such as LAST_ACK waiting for the used package to die.
2. Confirm the port number to be queried, and enter the command: netstat? -aon | findstr? 1044
The last number is the pid of the current program or service.
3. Enter the command: tasklist|findstr 26 12 (view the process or service corresponding to pid).
As can be seen from the above, the program currently running is: TsService.exe.
4. View the program with the process number of 26 12 through the task manager.
It can be known that there is indeed a program with a pid of 26 12, and the program in TsService.exe occupies the port number 1044.