Stack Overflow: How can you find out which process is listening on a port on Windows?

PowerShell:
Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess

cmd:
C:\>netstat -a -b

#windows #network #stackoverflow

Comments

Be the first to add a comment