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

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

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

Apache 2.4 + mod_wsgi + Python 3.7 + Django installation on Centos 7.10