Windows - How to know which program takes a port ?

Windows 95 Wallpaper Version

About

The management of the port with Windows.

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.

With powershell

With powershell.

For the port 9003, for instance

Get-Process -Id (Get-NetTCPConnection -LocalPort 9003).OwningProcess

Output:

Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
-------  ------    -----      -----     ------     --  -- -----------
   3600     486  4316388    4542152  15,464.75  19472   1 idea64

With TcpView

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

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.

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.





Discover More
Map Of Internet 1973
Network - (netstat|network statistics) command-line tool

Netstat (network statistics) is a command-line tool that displays network connections (both incoming and outgoing), routing tables, and a number of network interface statistics. netstat...
Obia Powercenter Topology
OBIA - Installation Version 7.9.6 with EBS, PowerCenter, Oracle Database on Windows

Roadmap To install and set up Oracle BI Applications, do the following: preinstallation steps for the source...
Odi Create Master Repository Wizard
ODI - Installation version 10.1.3.5.0

LD_LIBRARY_PATH= Master Repository: Data structure containing information on the topology of the company's IT resources, on security and on version management of projects and data models. This repository...
Bobj Installation 1 Setup
SAP BOBJ - Enterprise XI 3.0 Installation for Windows 32

Installation of SAP BO Enterprise XI 3.0 on a Windows Server 32 Bit SAP Software Download Center > Installations and Upgrades > B > SAP BusinessObjects Business...
Ports
What is a Port in computing?

This article is about the network port, what it is, how we use it and more



Share this page:
Follow us:
Task Runner