netstat? -anp The following are explanations of common parameters:
NETSTAT[-a][-b][-e][-n][-o][-p proto][-r][-s][-v]
[interval]
-a shows all connections and listening ports.
-b shows the executable components involved in creating each connection or listening port.
-e Displays Ethernet statistics. This option can be used in combination with the -s option.
-n Displays the address and port number as numbers.
-o Displays the owning process ID associated with each connection.
The p option is used to specify a subset of the default cases.