Skip to main content

Practical Uses of Netstat Command in Analyzing Connected Foreign Addresses

Netstat command is a DOS command used to find all active TCP connections between your computer and other network devices with port numbers and TCP connection state. By simply using this command on command prompt, you will get the list of active TCP connections between local IP address(your computer) and foreign IP addresses. You can also find the port numbers open in those connections. With proper syntax we can effectively use it to view how your computer is connected to foreign computers. It has many important uses in computer security. Check the image below to understand its simple use.
proper use

List of Common Netstat Command Syntax
  1. netstat -n : Displays addresses and port numbers in numerical form

  2. netstat -a : Displays all connections and listening ports

  3. netstat -b : Displays the executable involved in creating each connections or listening ports.

  4. netstat -e : Displays Ethernet statistics

  5. netstat -o : Displays the Process Identifier associated with each connection

  6. netstat -p :Shows connections for the specific protocol only

  7. netstat r : Displays the routing table

  8. netstat s : Displays per-protocol statistics

Practical Uses of Netstat Command

If you are working on computer security, it is very handy. There are many practical uses like finding any programs established a connection to Internet without your knowledge, finding the IP address of a chat friend while sharing a file etc. Let us check some of such uses.

  1. Check Programs Established Connections

    It is important to find the names of applications installed on your computer established connection between your computer and a foreign address. Use the following format to find every applications having an active TCP connection.

    netstat -b
    code to find active internet programs

    You must need to run Command Prompt in administrator mode to execute this command. To learn how to do this, visit the link below.
    The Requested Operation Requires Elevation (Run as Administrator)

  2. Find Process Identifiers

    With netstat -o command you can find active TCP connections made on your computer with exact Process Identifiers(PID).
    Practical uses

  3. Find Absolute Domain name of Foreign Host

    One of the important application is to find the absolute domain name or Fully Qualified domain Name(FQDN) of the connected foreign address. It will give you a clear picture of the Internet foreign hosts who are connected to your computer. The syntax to find Fully Qualified domain Name of foreign address is given below.

    netstat -f
    Find FQDN of foreign connections

  4. Find the Offload

    We can find the current offload state of TCP connections using it. The syntax to find current TCP chimney offload state is give below.

    netstat -t
    important uses

Suggested Readings
  1. I Can Ping Global DNS Server Address But Unable To Go Online

  2. How to find the Location of Your Yahoo Messenger Chat Friend

  3. Industry's Best Free Antivirus Software Products

  4. CMD Command To Open DOS In Any Drive

No: Recent Posts
Local Area Network (LAN)
Basics of Computer Networking
Metropolitan Area Network (MAN)
Wide Area Networks (WAN) Tutorial
What is Router & Major Functions
Basic Wireless Networks Tutorial
IP Addressing Guide (IPv4 & IPv6 Addressing)
What is WiFi & Different IEEE 802.11 Wireless Standards
Effective Use of Ping Utility
Tracert- Tool to Find the Path of a Packet
Fiber Distributed Data Interface (FDDI)
Control Packets Traffic Using Access Control List


Anonymous said…
you have a fast server
rijuroy said…
when i type netstat -b it says "The requested operation requires elevation" what does that mean?
Atanu Dey said…
"The requested operation requires elevation" displays. Soloution is Please open the commnad prompt as Run as Administrator mode.
Admin said…
Thanks for providing solution Atanu.

@ Riju For more details please visit the link below.

Recent Posts

How to Configure Idea 4G & 3G on Android Phone -APN Settings

When you activate Idea GPRS, 4G or 3G Internet on your Android phone, your phone will receive the automatic settings. However, sometimes you may need to configure the Access Point and GPRS settings for Idea (both GSM second and third generation) connection manually on your Android phone. In case if you delete the previous configuration, it is better know how to setup the same settings again by yourself. A wrong Access Point Name can stop you from accessing their mobile broadband service. Otherwise after deleting the existing APN for Idea 3G or GPRS you may need to re-insert the SIM again to get automatic settings from them. If you know the manual configuration steps, you can avoid that hardware procedure. If you are looking for the steps to get maximum speed from Idea 4G, you may click the link below and follow the instructions. The below hack will increase the Idea 4G data transfer speed.

Boost Idea 4G Data Transfer Speed

Steps to Configure Idea 4G/ GPRS/ 3G on Android Click on Applic…

Village Field Assistant in Kerala Revenue (123/2017) Examination

PSC has notified examination for the post Village Field Assistant in Kerala Revenue Department. Category number of the notification is 123/2017. According to this notification, anyone who has passed 10th Standard and having cycling skill can apply. There is no ineligibility for those having higher education standards to apply for Village Field Assistant. So, those who passed HSS, Degree etc can apply. Village Field Assistant is the new name given to the post Village Man in Kerala Revenue Department and is one of the few posts where PSC conducts direct recruitment to Revenue department. Public Service Commission conducts different examinations for each districts and there will be different question papers and cut off marks. Anyone who apply for Village Field Assistant can apply to only one district. Right now, only anticipatory vacancies are reported. So we do not know the exact number of vacancies in each districts. According to High Court verdict in 2006, women too can apply to Vill…

Eligibility and Exam Pattern CBI Officer Recruitment 2017 - Sub Inspector By SSC CGL

To become an officer in Central Bureau of Investigation ( CBI ) is a dream of many youth in India. Though this elite investigation agency is popular among public, many do not know the procedure to join CBI as an officer. This article explains the various criteria, eligibility, exam pattern and procedure to become a CBI officer. Two different agencies conduct examinations to fill vacancies in CBI. They are UPSC and SSC. To become a group A officer in CBI, you must choose Civil Service Examination conducted by UPSC and become an IPS officer. To join as Sub Inspector in CBI, you must go through SSC CGL examination.

Name Of the Post Recruitment Agency Group A OfficerUPSC (Civil Service Examination)Sub InspectorSSC CGL
Where to Apply
If you are dreaming to become an Officer in CBI, you must pass the Combined Graduate Level Examination (CGL ) conducted by Staff Selection Commission (SSC) in every year. You must wait for the next SSC CGL notification and prepare for the same. It is a 4 tier …

PING: Transmit failed. General Failure - Reasons and Solution

Yesterday while checking network connectivity, I received one error message while trying to ping loopback address from my Windows computer. The error message I received is "PING: Transmit failed. General Failure" and all the packets send from command prompt were lost. I tried to ping a different loopback address but the result was same. I fixed the issue by following a set of steps and sharing those troubleshooting steps in this tutorial hoping it may help in case if you experience the same error message PING: Transmit failed. General Failure.

Broadband Hack To Improve Speed

This is the output I received when I ping loopback address.

C:\Users\sijugk>ping Pinging with 32 bytes of data: PING: transmit failed. General failure. PING: transmit failed. General failure. PING: transmit failed. General failure. PING: transmit failed. General failure. Ping statistics for Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)

Reasons an…

Modify SBI Inter-Bank Beneficiary For RTGS & NEFT

To complete online money transfer using either RTGS or NEFT in your State Bank of India net banking account, the first step is to add the account details of the person to whom you are sending money. Once the details are added under Inter-Bank Beneficiary list, you can start sending money to his/her account. However, it is possible that you might have entered wrong details while adding the beneficiary details. SBI allows users to either modify or delete a beneficiary if the user find the details incorrect. This article explains how to modify or delete beneficiary on SBI account within few minutes. The same procedure can be followed if you are seeing you have reached the maximum number of beneficiaries in your account while adding a new one.

Step By Step Instructions To Delete Beneficiary in HDFC Bank

Steps to Add a Beneficiary in State Bank Net-banking Account

Visit the SBI Netbanking login Link and enter netbank username and password.…

Fire Station Officer Recruitment 2017 ( Kerala Fire Force) -Exam Date

A state wide direct general recruitment for the post Station Officer( Trainee) in Kerala Fire and Rescue Services department is announced by Kerala Public Service Commission. The Scale of Pay of Fire Station Officer is 30700-65400 Indian Rupees per month. The selected officers must undergo training in State Fire Service Training School or National Fire Service College Nagpur. The minimum educational requirement to apply for Fire Station Officer in Kerala is degree in Science from a recognized university preferably in Chemistry. Those who have good record in Sports and Games will get preference. The age limit to apply for Fire Station Officer(Trainee ) by General category candidates is 20-31 years. Usual upper age relaxation is allowed for backward communities. The Fire Station Officer Recruitment 2017 exam date, physical efficiency test, last date to apply, reported vacancies etc are given below.

Category NumberGazette Notification DateLast Date to ApplyDate of written testDate of Phys…