Pages

Wednesday, May 25, 2011

How to search applications which are running on windows via their port numbers utlizing it

1. Open CMD and type below commands

2. netstat -aon | findstr 0.0:80 (Network Status)
Which give you which application running port number starting with 80
-a means list all active connections and their ports.
-o means include their process IDs.
-n means display the port numbers numerically.
Output
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 3400, (Here 3400 is a process id of the application which using 80 port)
3. tasklist | findstr 3400
This one will give you the application name which using the port. You can kill the process if you don’t require it.