How to find out application name by PID (process id)
Asked Answered
P

1

10

I'm trying to install VisualSVN server and have message "Specified TCP port is occupied by another service". How I can find what service or app is using the 443 port? "netstat -aon" shows me only

UDP    0.0.0.0:443            *:*        4252

The OS is Windows. And yes, I had VisualSvn Server installed on this computer before. Then I removed it (I do not see any SVN service running) and would like to reinstall.

Also I'd like to know what Authentication mode should I choose. Considering I want to have repository on external drive.

Thank you in advance, Alex.

Patric answered 17/3, 2013 at 17:6 Comment(0)
B
10

netstat output

  • On the latest Windows versions, run Get-NetTCPConnection PowerShell cmdlet with PowerShell 5.

    For example, run this command to get the name of the process that's listening to port 443 on your computer:

    PS C:\> Get-Process -Id (Get-NetTCPConnection -LocalPort 443).OwningProcess
    
    Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
    -------  ------    -----      -----     ------     --  -- -----------
    143      15     3448      11024              4572   0 VisualSVNServer
    
Billibilliard answered 19/3, 2013 at 11:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.