How to check which application listens on particular port in Windows

 

 How to check which application listens on particular port in Windows

go to start->cmd and run 
netstat -aon | findstr ":80" | findstr "LISTENING"

Output is like this:
TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       3880
 
and last number is process id, now search for the application
 
tasklist /fi "pid eq 3880" 
 
or use Powershell
 
Get-Process -Id (Get-NetTCPConnection -LocalPort 80).OwningProcess 

 

Comments

Popular posts from this blog

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

Reduce (shrink) and resize raw disk at Proxmox

How to clean DB from old logs in Magento 1.x