Windows : Killing a Process Running on a Port

Its a common problem and its been increasing with the introduction and heavy dosage of .NET Core. So These are the three simple steps to kill a process running on a port.
1yh848
1) Run CMD as administrator.
2) netstat -aon |find /i "listening" |find "8080" – This will show the process id thats is running on port 8080, lets assume its 158000.
3) tasklist /v /fi "PID eq 158000"In case you want to know whats that process (pid = 158000) is .
4) taskkill /pid 158000 /fTo kill the process.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s