How To – Find the Process ID (PID) using by specific network port

With the help of these steps you will be able to find the specific network port number along with process ID of the process which is using it in command prompt.

Netstat: The netstat command is a used to display detailed information about how your computer is communicating with other computers or network devices. With the help of this you will be able to find specific network port number.

Steps:

  1. click on Start > run> cmd<Enter>
  2. netstat -aon | find “:port number”<enter>

Example:

How To - Find the Process ID (PID) using specific network port

How To – Find the Process ID (PID) using specific network port

Now we know Port Number “18080” is using by Process ID (PID) 4228 (as per our example)

Now if you want you can kill the Specific Process ID using TaskKill command.

TaskKill: Ends one or more tasks or processes. Processes can be killed by process ID or image name.

Steps:

  1. click on Start > run> cmd<Enter>
  2. TaskKill.exe /PID <Process ID> /F <Enter>
How To - Find the Process ID (PID) using specific network port

How To – Find the Process ID (PID) using specific network port

You can verify using Netstat command

Example:

How To - Find the Process ID (PID) using specific network port

How To – Find the Process ID (PID) using specific network port

Now your network port 18080 is free.