netstat Netstat Netstat Netstat Netstat

Introduction to Netstat

Netstat is a tool for identifying which TCP connections are active on the machine where the command is run, listing all TCP and UDP ports that are open on that computer.

The command "netstat" is also used to retrieve statistics on a number of protocols (Ethernet, IPv4, TCP, UDP, ICMP and IPv6).

Netstat command settings

When used with no arguments, the command netstat displays all connections which have been opened by the machine. The command netstat has a number of optional settings. The syntax is:

netstat [-a] [-e] [-n] [-o] [-s] [-p PROTO] [-r] [interval]

When used with the argument -a, the command netstat displays all connections and listening ports on the machine.

When used with the argument -e, the command netstat displays Ethernet statistics.

When used with the argument -n, the command netstat displays the address and port numbers in numerical form, without name lookup.

When used with the argument -o, the command netstat gives the number of the process assigned to the connection.

When used with the argument -p followed by the name of the protocol (TCP, UDP or IP), the command netstat displays the requested information concerning the specified protocol.

When used with the argument -r, the command netstat displays the routing table.

When used with the argument -s, the command netstat displays detailed statistics for each protocol.

Finally, an optional refresh interval (given as a number of seconds) can be used to set how long to display the information before reloading it. By default, it is set to 1 second.

Last update on Thursday October 16, 2008 02:43:15 PM.This document entitled « Netstat » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Best answers for « Netstat » in :
Download NetStumbler Show Internet wireless entered morals more than ever. Because of this or that it is more difficult to manage it in reason the absence of links of visible connection. NetStumbler is a tool for Windows allowing to discern local networks without son or using...
Choosing the best Wi-Fi channel Show Choosing the best Wi-Fi channel Wi-Fi channel Wi-Fi is a wireless network technology with a limited part of the bandwith to limit the noise of other equipment. Here is the list of channels (frequencies associated) of the ISM...
List of open ports in command line Show List of open ports in command line Whether you're running Windows or Linux / Unix, the following command in (console) will display the list of open ports on your computer: netstat -a For the use of advanced graphics tools, see What...
What are the open ports on my machine? ShowWhat are the open ports on my machine? Everyone should be concerned about the security of their computer when connected to the Internet and it is therefore necessary, to activate the firewall of your ADSL router or installing one on your...
Lists of ports based on the applications using them ShowLists of ports based on the applications using them Here is a list of applications with their respective ports, available on the site portforward.com http://portforward.com/cports.htm Under Linux, if you want to know the ports...