Get a list of open ports and processes that use them

Run at the command line:

netstat -anb

Name: The protocol over which the connection is made and the process that uses it.

Local address: IP address of the network interface participating in the connection and open port.

External address: external IP address and port involved in the connection.


CLOSE_WAIT - waiting for the connection to close.
CLOSED - the connection is closed.
ESTABLISHED - connection established.
LISTENING - waiting for connection.
TIME_WAIT - response time exceeded.

Addresses like or [::] mean that any IP address can be used in the connection .

If you do not use 'n' in the key, netstat will try to get the names of external addresses and the letters of the protocols using the port instead of IP addresses.

netstat -ab

Author: admin