netstat -na | find “51000” or netstat -np [protocol] | find “port #” netstat -np tcp | find “51000” or this one where you can kill the process netstat –aon | find “port #” taskkill /F /pid [process ID]