Sign up for newsletters or to my RSS feeds to receive updates automatically blog!

Determine the ports used by a specific process in Windows XP



With the tools from the command line "tasklist" and "netstat" WinXP and 'be traced back to the doors in use for a given process but also to a certain port find the process that uses it.

To determine what the port in use for some cun process where you know the name and 'must first find its PID (process identifier). For example, to identify the PID process Apache.exe active on a Windows server and 'Simply type:

  C: \> tasklist / fi "IMAGENAME eq Apache.exe" 

The output returned and 'the following:

  Image Name PID Name session Session Use mem ============= ============= ======== ==== ==== ======== Apache.exe 1012 Console 0 7,948 K 

How can 'see, the PID and' appears in the second column: hours and 'can search the ports used by the process through netstat.
For example typing:

  c: \> netstat-ano | findstr 1012 

the system returns the following information:

  TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 1012 

This result shows that the service Apache and 'listening on port 80.E' possible pero 'also perform the operation, or search for all processes associated with a certain port. For instance, to identify what process uses port 4664 and 'Simply type:

  c: \> netstat-ano | findstr: 25 

On my car is returned the following results:

  TCP 127.0.0.1:4664 0.0.0.0:0 LISTENING 3920 

Having identified the PID (in this case 3920), we can determine the name of the process by typing:

  c: \> tasklist / fi "PID eq 3920" 

that in my case returns the following results:

  Image Name PID Name session Session Use mem ====================== ============= ==== === ===== ============ GoogleDesktopIndex.exe 3920 Console 0 8,976 K 

Then the machine in question the process that is listening on port 4664 and 'the "Google Desktop Search" GoogleDesktopIndex.exe.

Subscribe my RSS feeds Did you like this article? Subscribe now RSS feeds!



Still no comment '

RSS feed of the comments of this post. TrackBack URI

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Valid XHTML and CSS. ^ Top


Close
Send e-mail