Skip to main content

How to check which program is using a specific port

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Damien_Villaret
Support
Support

How to check which program is using a specific port

Last Update:

Feb 8, 2022 7:40:55 AM

Updated By:

Sweta_Sharma

Created date:

Dec 7, 2015 8:46:19 AM

Or: How to find if a port is used by a different service

It may be necessary to verify what ports are being used by what product (Qlik product or 3rd party). There are different methods to check currently bound ports, most using 3rd party products native to Windows. Note that there are different methods to verify what ports are in use, from 3rd party tools to native Windows such as netsh or various PowerShell commands. 

We've collected a few commonly used methods.

Alternatively, Qlik Sense comes shipped with Qlik Sense Utility, which includes a Port Checker. See Qlik Sense Utility - Functions and Features.

For more information about required ports for Sense and QlikView:

 

Method 1 


As an administrator, open the Windows command prompt and execute the following command: 

 

 

C:\>netstat -noab

 

 

This will return information in this format:

 

 

 TCP   0.0.0.0:7680   0.0.0.0:0   LISTENING   1028  DoSvc  [svchost.exe]

 

 

 

Method 2


As an administrator, open the Windows command prompt and execute the following command: 

 

 

C:\>netstat -noa

 

 

This lists active connections including the port numbers, but will not show the program:

 

 

 Proto  Local Address          Foreign Address        State           PID
  ...
  TCP    [::]:5151             [::]:0                 LISTENING       1688
  ...

 

 

To identify what program uses the port, use the PID from the first output and run this command

 

 

tasklist /fi "pid eq 1688"

 

 

or

 

 

"tasklist | find "[PID_number]"

 

 

This will return the service name:

 

 

anothersoftware.exe    1688 Services    0     66,192 K

 

 


Using PowerShell:

The same can be accomplished using PowerShell.
Open PowerShell and execute:

 

 

PS> netstat -noa | sls 443

 

 

This will return:

 

 

TCP   0.0.0.0:443       0.0.0.0:0        LISTENING       4

 

 

Where the last number (in our cases 4) is the Process ID (PID).

 

Method 3

The same can be accomplished using Command prompt.
1. Open a command prompt as an administrator.
2. Create a text file named file.txt with the netstat command.
3. Type: netstat -naob > c:\file.txt
4. Open the text file with the following command: C:\file.txt

 

Note:

If ports are enabled it provides you an information that it is listening on port 443 and its service name.
For example:
TCP          0.0.0.0:443         0.0.0.0:0        LISTENING           7036
[Proxy.exe]

 

Related Content:

 

Labels (2)
Version history
Last update:
‎2022-02-08 07:40 AM
Updated by: