Netstat Command In Windows Server 2008

This article describes Netstat command in Windows Server 2008 operating system and also explains it's syntax.
  • 5473

Introduction

Netstat command is used to show all active TCP connections, ports on which computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics and IPv6 statistics. Syntax used for Netstat command is given below.

Syntax

Netstat [-a] [-e] [-n] [-o] [-p <Protocol>] [-r] [-s] [<Interval>]

Parameters For Netstat

Parameter Description
-a Shows all active TCP connections and the TCP and UDP ports on which the computer is listening.
-e Shows Ethernet statistics.
-n Shows active TCP connections, however, addresses and port numbers are expressed numerically and no attempt is made to determine names.
-o Shows active TCP connections and includes the process ID (PID) for each connection.
-p <Protocol> Display connections for the protocol specified by protocol.
-s Shows statistics by protocol. By default, statistics are shown for the TCP, UDP, ICMP, and IP protocols.
-r Shows the contents of the IP routing table.
<Interval> Redisplays the selected information every Interval seconds.
/? Shows help at the command prompt.

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.