CrazyEngineers
  • How to interpret NETSTAT command?

    durga ch

    durga ch

    @durga-TpX3gO
    Updated: Oct 26, 2024
    Views: 1.2K
    How do we actually interpret netstat command.

    For eg:consider the below result for a port 'abc' on the server xxx.


    netstat -a | grep abc
    tcp 0 0 xxx.abc yyy.1 ESTABLISHED
    tcp 0 0 xxx.abc yyy.2 ESTABLISHED
    tcp 0 0 *.abc *.* LISTEN
    tcp 0 0 xxx.abc yyy.3 CLOSE_WAIT


    Ah! I understand its a tcp connection and abc are listening ports trying to listen to the 'established' connection from the ports 1,2,3 from a client machine yyy.
    Outgoing packets and incoming packets are 0 currently and since a TCP connection from yyy.3 can be 'closed' to abc port of xxx only after yyy receives a ack from xxx.

    I feel I am missing upon other stuff here, any other deductions?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Anil Jain

    MemberOct 5, 2009

    Ah !! nice topic, I always loved to discuss about commands.

    netstat (network statistics) is a command-line tool that displays network connections (both incoming and outgoing), routing tables, and a number of network interface statistics. It is available on Unix, Unix-like, and Windows NT-based operating systems.

    It will take lots of space to explain the command with each attribute. For in depth knowledge of NETSTAT you can refer the following sites:

    For Windows: #-Link-Snipped-# (Netstat command)

    For Linux: #-Link-Snipped-#
    Are you sure? This action cannot be undone.
    Cancel
  • madhumurundi

    MemberOct 12, 2009

    to know about more on netstat type netstat -? in command prompt you will get an help mesage
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register