Flag This Hub

Programming.a.baby - (Cmd) Cmd Net Stat ( net - state cmd ex ) ( cmd net state view )

By


Cmd.exe - Article 2

Windows Cmd.exe Application (Ms-Dos environment)
Windows Cmd.exe Application (Ms-Dos environment)

Some help with cmd for starting

Hello.

If you come from my previous Article [ Programming.a.baby - (Cmd) Trace Route to Your ISP ], you already know what we are talking about here.

If not, please visit the previous Hub and then return here.

 

What is NetStat

Netstat means network Statistics, is a command-line tool that displays network connections (incoming and outgoing), a number of network interface statistics and routing tables. You can find it in Unix, Unix-like, and Windows NT-based operating systems.


Lets Work

  1. Press MS + R to open the Run Application (Remember that MS stands for the Microsoft Logo Keyboard Key)
  2. Write CMD and press Enter to open the CMD Application
  3. Write netstat and press Enter

After a couple of seconds you will see all the incoming and outcoming connexions from your computer with the follow information

  • Protocol (Tcp, Udp or other)
  • Local Address (Usually your System IP or Network Address IP)
  • Remote Address (when you see your computers name is a local vs local connexion)
  • Status (established, time_wait, close_wait)


Doing some simple tests

You can close all the web pages, browser, messenger, mail...etc and call the netstat command again the number of times you wish, this way you will see how many connexions your computer does when you are connected to a unique web site or when you only have a web based application on.

Take a look in the Sample 1 Image

Sample 1

More netstat command lines

You can also add some extra command in the end of the line, suppose you want to see all the Remote Connexions IP addresses instead of showing address names

  • Write netstat -n and press Enter (Number IP addresses)
  • Write netstat -a(All connexions)
  • Write netstat -e (Ethernet statistics)
  • Write netstat -f (Full Qualified Domain Name for external web connexions)
  • Write netstat -s (Statistics by protocol)
  • Write netstat -r (Redirecting Table)
  • Write netstat -o(Object ID associated to each connexion)
  • Write netstat -b(show which Application is making each connexion)

Note: If you are using Windows 7 or Windows Vista, you will need to open the CMD with administrator rights so you can use some of these commands


Comments

crystolite 14 months ago

Useful information, well rated.

pol1ce 14 months ago

Thanks Crystolite for you comment and vote

ImChemist 14 months ago

helpful hub , thanks.

pol1ce 14 months ago

Thanks "ImChemist" for the comment

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    Like this Hub?
    Please wait working