Start -- run -- cmd enter the command prompt and enter netstat-ano. Then you can see all connected PIDs and find the corresponding PID in the task manager. ProgramIf no PID exists in the task manager, select "View"-"Select column" in the task manager"
Often, when we start an application, we find that the ports required by the system are occupied by other programs. How do we know who owns the ports we need, next we will introduce a very simple method and hope it will be useful to you.
If we need to determine who occupies our port 9050
1. Windows Platform
Run the following command in the Windows command line window:
C: \> netstat-Aon | findstr"9050"
TCP 127.0.0.1: 9050 0.0.0.0: 0 listening 2016
As you can see, the port is occupied by a process with the process number 2016. Continue to execute the following command:
C: \> tasklist | findstr"2016"
Tor.exe 2016 console 0 16,064 K
Tor occupies your port.