[{"@context":"http:\/\/schema.org\/","@type":"BlogPosting","@id":"https:\/\/wiki.edu.vn\/all2en\/wiki14\/netstat-wikipedia-the-free-encyclopedia\/#BlogPosting","mainEntityOfPage":"https:\/\/wiki.edu.vn\/all2en\/wiki14\/netstat-wikipedia-the-free-encyclopedia\/","headline":"Netstat – Wikipedia, the free encyclopedia","name":"Netstat – Wikipedia, the free encyclopedia","description":"In this computer article several problems were detected. Please edit it to improve it: This notice was placed on September","datePublished":"2019-03-01","dateModified":"2019-03-01","author":{"@type":"Person","@id":"https:\/\/wiki.edu.vn\/all2en\/wiki14\/author\/lordneo\/#Person","name":"lordneo","url":"https:\/\/wiki.edu.vn\/all2en\/wiki14\/author\/lordneo\/","image":{"@type":"ImageObject","@id":"https:\/\/secure.gravatar.com\/avatar\/44a4cee54c4c053e967fe3e7d054edd4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/44a4cee54c4c053e967fe3e7d054edd4?s=96&d=mm&r=g","height":96,"width":96}},"publisher":{"@type":"Organization","name":"Enzyklop\u00e4die","logo":{"@type":"ImageObject","@id":"https:\/\/wiki.edu.vn\/wiki4\/wp-content\/uploads\/2023\/08\/download.jpg","url":"https:\/\/wiki.edu.vn\/wiki4\/wp-content\/uploads\/2023\/08\/download.jpg","width":600,"height":60}},"image":{"@type":"ImageObject","@id":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bc\/Commons-emblem-issue.svg\/40px-Commons-emblem-issue.svg.png","url":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bc\/Commons-emblem-issue.svg\/40px-Commons-emblem-issue.svg.png","height":"40","width":"40"},"url":"https:\/\/wiki.edu.vn\/all2en\/wiki14\/netstat-wikipedia-the-free-encyclopedia\/","wordCount":2140,"articleBody":" In this computer article several problems were detected. Please edit it to improve it: This notice was placed on September 23, 2022. You can notify the main editor hitting the following on their discussion page: {{SUST:Aviso Pa|nettat|Reference|wikificate}} , ~~~~o Screen capture of the Netstat command in GNU\/Linux netstat ( net work stat istics ) It is a command line tool that shows a list of the active connections of a computer, both incoming and outgoing. There are versions of this command in several systems such as UNIX, GNU\/Linux, Mac OS X, Windows and Beos. The information that results from the use of the command includes the protocol in use, the routing tables, the statistics of the interfaces and the state of the connection.There are, in addition to the command line version, tools with graphic interface (GUI) in almost all operating systems developed by third parties . syntax and tool parameters can vary between the different operating systems that implement it. In UNIX -based systems (this includes GNU\/Linux and Mac OS X, among others), the command can be used man netstat To visualize the help of the command. Other ways to see a parameter list can be with the parameter -h or also --help (in the systems that comply with the postix standard) or with \/? (In Windows and MS-DOS systems). In Windows and MS-DOS [ To edit ] Netstat [ -a ] [ -It is ] [ -n ] [ -s ] [ -p protocol] [ -r ] [interval] -a View all connections and TCP and UDP ports, including those that are “listening” (listening). -b In recent systems, visualize the binary (executable) of the program that has created the connection. -It is Ethernet statistics of visualizations, such as the number of packages sent and received. It can be combined with the option -s . -n The ports are shown with their identification in a numerical and not text. -O In Windows XP and 2003 Server systems, it shows the process identifiers (PID) for each connection. The process identifiers can be verified in the Windows Task Manager (adding it to the processes tab columns) -p shows the connections for the specified protocol; The protocol can be TCP or UDP. If used with the option of -s to visualize the statistics by protocol; The protocol (proto) can be TCP, UDP or IP. -r Visualize the routing or direction table. It is equivalent to the command route print . -s Statistics for visualizations protocol. For the default value, statistics is shown for TCP, UDP and IP; The -P option can be used to specify a subset of default value. -in In Windows XP and 2003 Server systems, and used together with -B, it shows the sequence of components used in the creation of the connection by each of the executables. Interval : Show the information again each interval (in seconds). If Ctrl+C is pressed, the visualization is stopped. If this parameter is omitted, Netstat shows the information only once. Use Netstat -N (SEGS) where SEGS is the number in seconds you will wait before showing the information again \/? Help: the characters and their function will appear. IN UNIX -based systems [ To edit ] netstat [-veennccf] [ ] -r netstat {-V|–version|-h|–help} netstat [-vnncaeol] [ …] netstat { [-veenNac] -i | [-cnNe] -M | -s } -r, –route Show the routing table. -i, –interfaces Show the interface table -g, –groups Shows the members of the multidifusion group -s, –statistics Sample network statistics (such as SNMP) -M, –masquerade Sample connections Masked -v, –verbose Shows more information at the output -n, –numeric Does not resolve names in general –numeric-hosts Does not solve the name of the hosts –numeric-ports Does not solve the name of the ports –numeric-users Does not solve user names -N, –symbolic Shows the names of network hardware -e, –extend Show another\/more information. -p, –programs PID sample or program name for each socket -c, –continuous Continuously show network statistics (until the program is interrupted) -l, –listening Shows the server sockets What are this way listen -a, –all, –listening Shows all sockets (default only those in mode connected ) -o, –timers Shows the timers -F, –fib Shows the Forwarding Information Base (default) -C, -Cache Show the routing cache instead of the FIB ={-t|–tcp} {-u|–udp} {-w|–raw} {-x|–unix} –ax25 –ipx –netrom =Uso ‘-6|-4’ or ‘-A ‘ O ‘– ‘; Defect: INET List of possible address families (which support routing): inet (DARPA Internet) Inet6 (IPV6) Ax25 (AMPR AX.25) Netrom (Ampr net\/room) ipx (Novell Ipx) ddp (Appletalk DDP) x25 (CCITT X.25) Exit example of the Netstat command in GNU\/Linux: herlitzcorp@admin# netstat -ntActive Internet connections (w\/o servers)Proto Recv-Q Send-Q Local Address Foreign Address Statetcp 0 0 127.0.0.1:34105 127.0.0.1:389 ESTABLISHEDtcp 0 0 127.0.0.1:389 127.0.0.1:54529 ESTABLISHEDtcp 0 0 127.0.0.1:389 127.0.0.1:56327 ESTABLISHEDtcp 0 0 172.16.4.5:110 172.25.47.30:1680 TIME_WAITtcp 0 0 172.16.4.5:110 172.25.131.212:2313 TIME_WAITtcp 0 0 127.0.0.1:60000 127.0.0.1:56547 ESTABLISHEDtcp 0 0 172.16.4.5:110 172.25.189.26:1803 TIME_WAITtcp 0 0 127.0.0.1:389 127.0.0.1:54029 ESTABLISHEDtcp 0 0 172.16.4.5:25 172.25.141.100:1375 TIME_WAIT Connection status [ To edit ] The indicator in the column state shows the connection status for the TCP protocol; For protocols not oriented to the connection, such as UDP, this field will appear blank. The possible states are as follows: ESTABLISHED The socket has an established connection. SYN_SENT The socket is trying to start a connection SYN_RECV A connection request was received by the network FIN_WAIT1 The socket is closed, and the connection is ending Fin_wait2 The connection is closed, and the socket is waiting for the remote connection to end TIME_WAIT The socket is waiting after closing to conclude the packages that follow on the network CLOSED The socket is not being used CLOSE_WAIT The remote connection has ended, and the socket is expected to close LAST_ACK The remote connection has ended, and the socket is expected to close. Waiting for acknowledgement . LISTEN The socket is waiting for possible incoming connections CLOSING Both sockets have ended but all data were not yet sent UNKNOWN The state of the socket is not known DELETE_TCB The transmission control buffer (TCB) for the TCP connection is being eliminated. Comments [ To edit ] The parameters used with this command must have the prefix (-) instead of a (\/). netstat Provides statistics for the following: The name of the protocol (TCP or UDP) The IP address of the local computer and the port number that is being used. The name of the local computer corresponding to the IP address and the name of the port is deployed unless the parameter -n be specified. If the port is not yet established, the port number is shown as an asterisk (*). The IP address and the port number of the remote computer to which the socket is connected. The name corresponding to the IP address and the name port are shown unless the parameter -n Be specified. If the port is not yet established, the port number is shown as an asterisk (*). Indicates the status of the TCP connection, the possible states are as follows: Close_wait, Closed, Establish, End_wait_1, End_wait_2, Last_ack, Listen, Syn_receved, Syn_send, Timed_wait. For more information about the states of the TCP connection, review RFC 793 . This command is available only if the Internet Protocol (TCP\/IP) It is installed as a component in the properties of the network adapter in network connections. To display Ethernet statistics and statistics for all protocols, write the following command: netstat -e -s To display statistics only for TCP and UDP protocols, write the following command: Netstat -s -p tcp udp To display the active TCP connections and process IDs every 5 seconds, write the following command: Netstat -O 5 To display the active TCP connections and process IDs using the numerical form, write the following command: Netstat -N -O Format legend [ To edit ] Format Meaning Bold font Elements that the user must digice exactly as shown Between square brackets [ -] Optional items external links [ To edit ] "},{"@context":"http:\/\/schema.org\/","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"https:\/\/wiki.edu.vn\/all2en\/wiki14\/#breadcrumbitem","name":"Enzyklop\u00e4die"}},{"@type":"ListItem","position":2,"item":{"@id":"https:\/\/wiki.edu.vn\/all2en\/wiki14\/netstat-wikipedia-the-free-encyclopedia\/#breadcrumbitem","name":"Netstat – Wikipedia, the free encyclopedia"}}]}]