Find PID of Application Using a Port

Best way to do it is to run the command

netstat -lnptu | grep :<port#>

This will give you the PID of the service, and then you can run

kill <PID>


kill -9 <PID>

if just a regular kill doesn’t work.

Leave a Reply

Your email address will not be published. Required fields are marked *