Ali’s Knowledge Base
Destination Cloud …

Ali’s Knowledge Base

How do I determine which process has TCP ports or UDP ports open?

July 20th, 2004 . by Ali

To display which process ID is using a certain TCP port or UDP port, you can start by using the Netstat command with the n (display in numeric form), o (display the owning process ID–this works on Windows XP only), and a (display all connections and listening ports) switches as follows:

netstat -noa

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

One Response to “How do I determine which process has TCP ports or UDP ports open?”

  1. comment number 1 by: Farooq

    Hi Ali
    This is a gr8 command. I want to disable all ports except those that are required on the system on my netowrk. What the best way to do this?

Leave a Reply

Name

Mail (never published)

Website