Thursday, April 28, 2011

Get Network Status on Windows

You can use the windows in-built command to check which all computers are connected to your computer through their domain names or ip addresses.

The command is NetStat Stands for Network Status.

Syntax & Available options :

Code:

netstat [-a] [-e] [-n] [-s] [-p protocol] [-r] [interval]

Meaning of each option :

-a Displays all connections and listening ports. Server connections are normally not shown.

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

-n Displays addresses and port numbers in numerical form (rather than attempting name look-ups).

-s Displays per-protocol statistics. By default, statistics are shown for TCP, UDP, ICMP, and IP. The -p option can be used to specify a subset of the default.

-p protocol Shows connections for the protocol specified by protocol; protocol can be tcp or udp. If used with the -s option to display per-protocol statistics, protocol can be tcp, udp, icmp, or ip.

-r Displays the contents of the routing table.

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

Press CTRL+B to stop redisplaying statistics. If this parameter is omitted, netstat prints the current configuration information only once.

No comments:

Post a Comment