How to find Windows process using port

netstat -an |find /i “listening”
netstat -an |find /i “established”
netstat -ao |find /i “listening”

1. netstat -aon | findstr “”

This shows if the specified is being used. The number in the last column is the process id (PID) of the process holding the socket. Once PID is determined, one can refer to “Windows Task Manager” to determine which application corresponds to the PID.

Windows Example

C:>netstat -aon | findstr “4557”
TCP 0.0.0.0:50000 0.0.0.0:0 LISTENING 5678

C:>pslist 5678

pslist v1.28 – Sysinternals PsList
Copyright ¬ 2000-2004 Mark Russinovich
Sysinternals

Process information for MACHINENAME:

Name Pid Pri Thd Hnd Priv CPU Time Elapsed Time
oracle 5678 8 15 366 34512 0:00:02.859 12:02:09.424

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top