Check what port an application is using
July 11th, 2007 by Ben Jim
There are a couple of applications that may fail to start and complaint because its port is being used by a different application. This is a quick and dirty way of knowing which application is responsible for tying up a port on a Windows box.
Open up a command prompt:
- Start | Run | type cmd | Enter
- Type netstat -aon | findstr “[port number]“
- Take note of the numbers on the last line. This is the PID or Process ID.
- Type tasklist | findstr “[PID]“ and this will return the application corresponding to that PID.
- Once PID is determined, you can now kill it in Task Manager or kill it typing tskill at the command prompt.
For example:
- I type netstat -aon | findstr “8080″ at command prompt (I’m on a proxy by the way)
- I see that the PID is 3624
- I type tasklist | findstr “3624″ to find what PID 3624 is and it points to msnmsgr.exe which is MSN/Live Messenger.
- I can now kill MSN Messenger from Task Manager or type tskill 3624

perfect man.
wuold know how you find thoses comamnds..
sorry for error I am hand injured.
Hi
Please tell me how to identify port number of paticular application.
Ex: Torrants
Thankyou very much
Dinusha
Dinusha,
Open up command prompt as in Step 1 listed above, then type:
tasklist | findstr “Torrants”
Note the PID (e.g. 1234), then type:
netstat -aon | findstr “1234″
Which would then give you the port(s) it’s using.
Wow.. Thanks for this..
by these 2 command netstat and tasklist I can find out everything.