Locate the process running on a given port on Windows
netstat -aof | findstr :8080
Find the process name by pid
tasklist /fi "pid eq 2216"
For a given port, get PID and Process/Image Name with headers
for /f "tokens=5" %a in ('netstat -aon ^| findstr :8080') do tasklist /FI "PID eq %a"