Using Netstat

Netstat displays protocol statistics and current TCP/IP network connections. If you go to a command prompt. Start – Run – CMD use:

netstat  -a
All connections and listening ports

netstat-b
Displays the executable involved in creating each connection or listening port

netstat -e
Displays Ethernet statistics. This may be combined with the -s option

netstat -n
Displays addresses and port numbers in numerical form

netstat  -o
Displays the owning process ID associated with each connection

netstat  -p proto
Shows connections for the protocol specified by proto; proto may be any of: TCP, UDP, TCPv6, or UDPv6.  If used with the -s option to display per-protocol statistics, proto may be any of: IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6

netstat  -r
Displays the routing table

netstat  -s
Displays per-protocol statistics.  By default, statistics are shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6; the -p option may be used to specify a subset of the default

netstat  -vb
Display sequence of components involved in creating the connection or listening port for all executable files

netstat  interval
Redisplays selected statistics, pausing interval seconds between each display.

The netstat -na command lists all ports currently open in your system, the address they are connected to and the state of their connection.

(Note: For Security, look for unusual listening TCP and UDP ports)

Leave a Reply

You must be logged in to post a comment.