Windows - How to know which program takes a port ?

> Operating System - Kernel (Windows, Unix, Linux) > Windows (and utilities)

1 - About

The management of the port with Windows.

Advertising

3 - How can I know which ports are available ?

When you install software, you need often to verify the available port in order to configure the component installation.

3.1 - With TcpView

Download Tcpview and launch the .exe with the same name.

3.2 - With Netstat

Just perform this instruction in a command dos.

netstat -abo | findstr ThePortNumber

Here below, we can see that Skype take the port 80 (http) or that googlewebaccclient the port 9100.

C:\Documents and Settings\Nicolas>netstat -ab
 
Active Connections
 
  Proto  Local Address          Foreign Address        State           PID
  TCP    NGERARD:http           NGERARD.nf.newfrontiers.nl:0  LISTENING       2804
  [Skype.exe]
  TCP    NGERARD:9100           NGERARD.nf.newfrontiers.nl:1526  LISTENING    3748
  [googlewebaccclient.exe]
  .....

With the options -b -v netstat determines which is PID is the originator of the port usage.