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

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

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

  1. 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

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