Programming.a.baby - (Cmd) Cmd Net Stat ( net - state cmd ex ) ( cmd net state view )
By pol1ce
Cmd.exe - Article 2
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
- Press MS + R to open the Run Application (Remember that MS stands for the Microsoft Logo Keyboard Key)
- Write CMD and press Enter to open the CMD Application
- 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
««« My Other CMD Articles
- Programming.a.baby - (Cmd) Trace Route to Your ISP
These "(Cmd) series" are a collection of some home computer work that you can do even if you do not understand much about programming...
Comments
Thanks Crystolite for you comment and vote
helpful hub , thanks.
Thanks "ImChemist" for the comment
crystolite 14 months ago
Useful information, well rated.