Available Feeds:
Writings
Comments

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:

  1. Start | Run | type cmd | Enter
  2. Type netstat -aon | findstr “[port number]“
  3. Take note of the numbers on the last line. This is the PID or Process ID.
  4. Type tasklist | findstr “[PID]“ and this will return the application corresponding to that PID.
  5. Once PID is determined, you can now kill it in Task Manager or kill it typing tskill at the command prompt.

ports1.JPG

For example:

  1. I type netstat -aon | findstr “8080″ at command prompt (I’m on a proxy by the way)
  2. I see that the PID is 3624
  3. I type tasklist | findstr “3624″ to find what PID 3624 is and it points to msnmsgr.exe which is MSN/Live Messenger.
  4. I can now kill MSN Messenger from Task Manager or type tskill 3624

Save to del.icio.us:Check what port an application is using Digg this:Check what port an application is using Submit to Newsvine:Check what port an application is using Blink this:Check what port an application is using Submit to reddit:Check what port an application is using Y!:Check what port an application is using gifttagging:Check what port an application is using

4 Responses to “Check what port an application is using”

  1. on 20 May 2008 at 5:25 am roger

    perfect man.
    wuold know how you find thoses comamnds..
    sorry for error I am hand injured.

  2. on 26 Oct 2008 at 2:40 pm Dinusha

    Hi

    Please tell me how to identify port number of paticular application.

    Ex: Torrants

    Thankyou very much

    Dinusha

  3. on 13 Nov 2008 at 9:47 am Sian Siew

    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.

  4. on 21 Nov 2008 at 11:55 am Ervin Ter

    Wow.. Thanks for this..

    by these 2 command netstat and tasklist I can find out everything.

Trackback URI | Comments RSS

Leave a Reply