Windows, find process using TCP port
CMD
- Get the PID of running process:
netstat -a -n -o | find "{PORT_NUMBER}"
tip:{PORT_NUMBER}
is the port number you want to lookup - Get the running task/process details by PID:
tasklist /fi "pid eq {PID}"
tip:{PID}
is the pid coming form list at previous point
Powershell
Get-Process -Id (Get-NetTCPConnection -LocalPort {PORT_NUMBER}).OwningProcess
tip: {PORT_NUMBER}
is the port number you want to lookup