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:
- click on Start > run> cmd<Enter>
- netstat -aon | find “:port number”<enter>
Example:
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:
- click on Start > run> cmd<Enter>
- TaskKill.exe /PID <Process ID> /F <Enter>
You can verify using Netstat command
Example:
Now your network port 18080 is free.