(1) Check that the port is occupied by that PID; method one: Targeted viewing port, using command
Netstat–ano|findstr "< port number >", as shown in the last column of PID. The port number in the figure is 1068, and the corresponding PID is 3840.
(2) View the name of the process that corresponds to the PID.
Find by command, tasklist|findstr "<pid >", that is, Tasklist|findstr 3840
Note: Open the command prompt--netstat-ano to see the native port open and the corresponding program.
Cases
Start--run--cmd Enter the command prompt input Netstat-ano you can see all the connected PID in the task Manager to find the program corresponding to this PID if the task Manager does not have the PID this item, you can select "View"-"Choose Column" in Task Manager
If we need to determine who's taking up our 9050 ports,
1. Windows platform
Execute under Windows command Line window:
C:>netstat-aon|findstr "9050"
TCP 127.0.0.1:9050 0.0.0.0:0 Listening 2016
Do you see that the port is occupied by a process number 2016 process, and continue with the following command:
C:>tasklist|findstr "2016"
tor.exe 2016 console 0 16,064 K