Netstat

C:\Users\firstname.lastname>netstat --help

Displays protocol statistics and current TCP/IP network connections.

NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-t] [interval]

  -a            Displays all connections and listening ports.
  -b            Displays the executable involved in creating each connection or
                listening port. In some cases well-known executables host
                multiple independent components, and in these cases the
                sequence of components involved in creating the connection
                or listening port is displayed. In this case the executable
                name is in [] at the bottom, on top is the component it called,
                and so forth until TCP/IP was reached. Note that this option
                can be time-consuming and will fail unless you have sufficient
                permissions.
  -e            Displays Ethernet statistics. This may be combined with the -s
                option.
  -f            Displays Fully Qualified Domain Names (FQDN) for foreign
                addresses.
  -n            Displays addresses and port numbers in numerical form.
  -o            Displays the owning process ID associated with each connection.
  -p proto      Shows connections for the protocol specified by proto; proto
                may be any of: TCP, UDP, TCPv6, or UDPv6.  If used with the -s
                option to display per-protocol statistics, proto may be any of:
                IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.
  -r            Displays the routing table.
  -s            Displays per-protocol statistics.  By default, statistics are
                shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6;
                the -p option may be used to specify a subset of the default.
  -t            Displays the current connection offload state.
  interval      Redisplays selected statistics, pausing interval seconds
                between each display.  Press CTRL+C to stop redisplaying
                statistics.  If omitted, netstat will print the current
                configuration information once.

C:\Users\firstname.lastname>netstat

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    10.85.32.12:8194      paris-serveur01-18:4573     ESTABLISHED
  TCP    10.85.32.12:55767     paris-serveur01-18:8194     ESTABLISHED
  TCP    10.85.32.12:55768     paris-serveur01-18:8194     ESTABLISHED
  TCP    10.85.32.12:55772     paris-serveur01-01:microsoft-ds  ESTABLISHED
  TCP    10.85.32.12:56030     franex00:6434           ESTABLISHED
  TCP    10.85.32.12:56035     franex00:6434           ESTABLISHED
  TCP    10.85.32.12:56048     sjc-not1:http          ESTABLISHED
  TCP    10.85.32.12:56049     v-client-2b:https      CLOSE_WAIT
  TCP    10.85.32.12:56050     ec2-50-16-213-90:https  CLOSE_WAIT
  TCP    10.85.32.12:58857     paris-serveur01-04:microsoft-ds  ESTABLISHED
  TCP    10.85.32.12:58965     filesrv1-adm:microsoft-ds  ESTABLISHED
  TCP    10.85.32.12:59005     bru01m01-in-f125:5222  ESTABLISHED
  TCP    10.85.32.12:59007     sn1msg3030110:msnp     ESTABLISHED
  TCP    10.85.32.12:59011     by2msg4010706:msnp     ESTABLISHED
  TCP    10.85.32.12:59013     baymsg1020308:msnp     ESTABLISHED
  TCP    10.85.32.12:59472     srv-ad01:1025           ESTABLISHED
  TCP    10.85.32.12:60944     rc8-103-25-216-51:https  CLOSE_WAIT
  TCP    10.85.32.12:61195     v-d-2a:https           CLOSE_WAIT
  TCP    10.85.32.12:62319     srv-ad01:ldap           CLOSE_WAIT
  TCP    10.85.32.12:62320     srv-ad00:ldap           CLOSE_WAIT
  TCP    10.85.32.12:62883     par03s01-in-f13:https  TIME_WAIT
  TCP    10.85.32.12:62906     paris-serveur01-12:http     TIME_WAIT
  TCP    10.85.32.12:62937     srv-ad00:epmap          TIME_WAIT
  TCP    10.85.32.12:62938     srv-ad00:1025           ESTABLISHED
  TCP    127.0.0.1:19872        WORKSTATION-037:62653    ESTABLISHED
  TCP    127.0.0.1:61651        WORKSTATION-037:61652    ESTABLISHED
  TCP    127.0.0.1:61652        WORKSTATION-037:61651    ESTABLISHED
  TCP    127.0.0.1:61654        WORKSTATION-037:61655    ESTABLISHED
  TCP    127.0.0.1:61655        WORKSTATION-037:61654    ESTABLISHED
  TCP    127.0.0.1:62430        WORKSTATION-037:62431    ESTABLISHED
  TCP    127.0.0.1:62431        WORKSTATION-037:62430    ESTABLISHED
  TCP    127.0.0.1:62432        WORKSTATION-037:62433    ESTABLISHED
  TCP    127.0.0.1:62433        WORKSTATION-037:62432    ESTABLISHED
  TCP    127.0.0.1:62653        WORKSTATION-037:19872    ESTABLISHED
  TCP    192.168.56.1:8194      WORKSTATION-037:62744    ESTABLISHED
  TCP    192.168.56.1:62744     WORKSTATION-037:8194     ESTABLISHED

C:\Users\firstname.lastname>netstat -a

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:135            WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:445            WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:912            WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:5357           WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:8192           WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:8193           WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:8194           WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:17500          WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:49152          WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:49153          WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:49154          WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:54646          WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:61731          WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:61732          WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:61742          WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:61968          WORKSTATION-037:0        LISTENING
  TCP    0.0.0.0:62042          WORKSTATION-037:0        LISTENING
  TCP    10.85.32.12:139       WORKSTATION-037:0        LISTENING
  TCP    10.85.32.12:8194      paris-serveur01-18:4573     ESTABLISHED
  TCP    10.85.32.12:55767     paris-serveur01-18:8194     ESTABLISHED
  TCP    10.85.32.12:55768     paris-serveur01-18:8194     ESTABLISHED
  TCP    10.85.32.12:55772     paris-serveur01-01:microsoft-ds  ESTABLISHED
  TCP    10.85.32.12:56030     franex00:6434           ESTABLISHED
  TCP    10.85.32.12:56035     franex00:6434           ESTABLISHED
  TCP    10.85.32.12:56048     sjc-not1:http          ESTABLISHED
  TCP    10.85.32.12:56049     v-client-2b:https      CLOSE_WAIT
  TCP    10.85.32.12:56050     ec2-50-16-213-90:https  CLOSE_WAIT
  TCP    10.85.32.12:58857     paris-serveur01-04:microsoft-ds  ESTABLISHED
  TCP    10.85.32.12:58965     filesrv1-adm:microsoft-ds  ESTABLISHED
  TCP    10.85.32.12:59005     bru01m01-in-f125:5222  ESTABLISHED
  TCP    10.85.32.12:59007     sn1msg3030110:msnp     ESTABLISHED
  TCP    10.85.32.12:59011     by2msg4010706:msnp     ESTABLISHED
  TCP    10.85.32.12:59013     baymsg1020308:msnp     ESTABLISHED
  TCP    10.85.32.12:59472     srv-ad01:1025           ESTABLISHED
  TCP    10.85.32.12:60944     rc8-103-25-216-51:https  CLOSE_WAIT
  TCP    10.85.32.12:61195     v-d-2a:https           CLOSE_WAIT
  TCP    10.85.32.12:62319     srv-ad01:ldap           CLOSE_WAIT
  TCP    10.85.32.12:62320     srv-ad00:ldap           CLOSE_WAIT
  TCP    10.85.32.12:62883     par03s01-in-f13:https  TIME_WAIT
  TCP    10.85.32.12:62937     srv-ad00:epmap          TIME_WAIT
  TCP    10.85.32.12:62938     srv-ad00:1025           TIME_WAIT
  TCP    127.0.0.1:9089         WORKSTATION-037:0        LISTENING
  TCP    127.0.0.1:19872        WORKSTATION-037:62653    ESTABLISHED
  TCP    127.0.0.1:61651        WORKSTATION-037:61652    ESTABLISHED
  TCP    127.0.0.1:61652        WORKSTATION-037:61651    ESTABLISHED
  TCP    127.0.0.1:61654        WORKSTATION-037:61655    ESTABLISHED
  TCP    127.0.0.1:61655        WORKSTATION-037:61654    ESTABLISHED
  TCP    127.0.0.1:62430        WORKSTATION-037:62431    ESTABLISHED
  TCP    127.0.0.1:62431        WORKSTATION-037:62430    ESTABLISHED
  TCP    127.0.0.1:62432        WORKSTATION-037:62433    ESTABLISHED
  TCP    127.0.0.1:62433        WORKSTATION-037:62432    ESTABLISHED
  TCP    127.0.0.1:62653        WORKSTATION-037:19872    ESTABLISHED
  TCP    192.168.13.1:139       WORKSTATION-037:0        LISTENING
  TCP    192.168.56.1:139       WORKSTATION-037:0        LISTENING
  TCP    192.168.56.1:8194      WORKSTATION-037:62744    ESTABLISHED
  TCP    192.168.56.1:62744     WORKSTATION-037:8194     ESTABLISHED
  TCP    192.168.239.1:139      WORKSTATION-037:0        LISTENING
  TCP    [::]:135               WORKSTATION-037:0        LISTENING
  TCP    [::]:445               WORKSTATION-037:0        LISTENING
  TCP    [::]:5357              WORKSTATION-037:0        LISTENING
  TCP    [::]:49152             WORKSTATION-037:0        LISTENING
  TCP    [::]:49153             WORKSTATION-037:0        LISTENING
  TCP    [::]:49154             WORKSTATION-037:0        LISTENING
  TCP    [::]:54646             WORKSTATION-037:0        LISTENING
  TCP    [::]:61742             WORKSTATION-037:0        LISTENING
  TCP    [::]:61968             WORKSTATION-037:0        LISTENING
  TCP    [::]:62042             WORKSTATION-037:0        LISTENING
  UDP    0.0.0.0:123            *:*
  UDP    0.0.0.0:500            *:*
  UDP    0.0.0.0:3702           *:*
  UDP    0.0.0.0:3702           *:*
  UDP    0.0.0.0:4500           *:*
  UDP    0.0.0.0:5355           *:*
  UDP    0.0.0.0:6004           *:*
  UDP    0.0.0.0:17500          *:*
  UDP    0.0.0.0:50519          *:*
  UDP    0.0.0.0:51370          *:*
  UDP    0.0.0.0:52764          *:*
  UDP    0.0.0.0:54756          *:*
  UDP    0.0.0.0:56820          *:*
  UDP    0.0.0.0:56917          *:*
  UDP    10.85.32.12:137       *:*
  UDP    10.85.32.12:138       *:*
  UDP    10.85.32.12:1900      *:*
  UDP    10.85.32.12:57767     *:*
  UDP    127.0.0.1:1900         *:*
  UDP    127.0.0.1:49903        *:*
  UDP    127.0.0.1:51941        *:*
  UDP    127.0.0.1:51942        *:*
  UDP    127.0.0.1:51947        *:*
  UDP    127.0.0.1:51948        *:*
  UDP    127.0.0.1:53937        *:*
  UDP    127.0.0.1:54273        *:*
  UDP    127.0.0.1:54274        *:*
  UDP    127.0.0.1:54685        *:*
  UDP    127.0.0.1:54786        *:*
  UDP    127.0.0.1:57771        *:*
  UDP    127.0.0.1:60242        *:*
  UDP    127.0.0.1:60860        *:*
  UDP    127.0.0.1:60863        *:*
  UDP    127.0.0.1:60865        *:*
  UDP    127.0.0.1:63456        *:*
  UDP    127.0.0.1:64280        *:*
  UDP    127.0.0.1:64281        *:*
  UDP    192.168.13.1:137       *:*
  UDP    192.168.13.1:138       *:*
  UDP    192.168.13.1:1900      *:*
  UDP    192.168.13.1:57769     *:*
  UDP    192.168.56.1:137       *:*
  UDP    192.168.56.1:138       *:*
  UDP    192.168.56.1:1900      *:*
  UDP    192.168.56.1:57770     *:*
  UDP    192.168.239.1:137      *:*
  UDP    192.168.239.1:138      *:*
  UDP    192.168.239.1:1900     *:*
  UDP    192.168.239.1:57768    *:*
  UDP    [::]:123               *:*
  UDP    [::]:500               *:*
  UDP    [::]:3702              *:*
  UDP    [::]:3702              *:*
  UDP    [::]:4500              *:*
  UDP    [::]:5355              *:*
  UDP    [::]:56821             *:*
  UDP    [::1]:1900             *:*
  UDP    [::1]:57766            *:*
  UDP    [fe80::d6:cf4d:c68a:c82c%10]:546  *:*
  UDP    [fe80::d6:cf4d:c68a:c82c%10]:1900  *:*
  UDP    [fe80::d6:cf4d:c68a:c82c%10]:57762  *:*
  UDP    [fe80::b842:1b31:c58:62c2%19]:546  *:*
  UDP    [fe80::b842:1b31:c58:62c2%19]:1900  *:*
  UDP    [fe80::b842:1b31:c58:62c2%19]:57765  *:*
  UDP    [fe80::d024:cc0f:1e8a:5bac%15]:546  *:*
  UDP    [fe80::d024:cc0f:1e8a:5bac%15]:1900  *:*
  UDP    [fe80::d024:cc0f:1e8a:5bac%15]:57764  *:*
  UDP    [fe80::e442:6407:a865:8997%13]:546  *:*
  UDP    [fe80::e442:6407:a865:8997%13]:1900  *:*
  UDP    [fe80::e442:6407:a865:8997%13]:57763  *:*

C:\Users\firstname.lastname>netstat -f

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    10.85.32.12:8194      paris-serveur01-18.nurun.com:4573  ESTABLISHED
  TCP    10.85.32.12:55767     paris-serveur01-18.nurun.com:8194  ESTABLISHED
  TCP    10.85.32.12:55768     paris-serveur01-18.nurun.com:8194  ESTABLISHED
  TCP    10.85.32.12:55772     paris-serveur01-01.nurun.com:microsoft-ds  ESTABLISHED
  TCP    10.85.32.12:56030     franex00.nurun.com:6434  ESTABLISHED
  TCP    10.85.32.12:56035     franex00.nurun.com:6434  ESTABLISHED
  TCP    10.85.32.12:56048     sjc-not1.sjc.dropbox.com:http  ESTABLISHED
  TCP    10.85.32.12:56049     v-client-2b.sjc.dropbox.com:https  CLOSE_WAIT
  TCP    10.85.32.12:56050     ec2-50-16-213-90.compute-1.amazonaws.com:httpsCLOSE_WAIT
  TCP    10.85.32.12:58857     paris-serveur01-04.nurun.com:microsoft-ds  ESTABLISHED
  TCP    10.85.32.12:58965     filesrv1-adm.nurun.com:microsoft-ds  ESTABLISHED
  TCP    10.85.32.12:59005     bru01m01-in-f125.1e100.net:5222  ESTABLISHED
  TCP    10.85.32.12:59007     sn1msg3030110.sn1.gateway.edge.messenger.live.com:msnp  ESTABLISHED
  TCP    10.85.32.12:59011     by2msg4010706.phx.gbl:msnp  ESTABLISHED
  TCP    10.85.32.12:59013     baymsg1020308.gateway.edge.messenger.live.com:msnp  ESTABLISHED
  TCP    10.85.32.12:59472     srv-ad01.nurun.com:1025  ESTABLISHED
  TCP    10.85.32.12:60944     rc8-103-25-216-51.compute-1.amazonaws.com:https CLOSE_WAIT
  TCP    10.85.32.12:61195     v-d-2a.sjc.dropbox.com:https  CLOSE_WAIT
  TCP    10.85.32.12:62319     srv-ad01.nurun.com:ldap  CLOSE_WAIT
  TCP    10.85.32.12:62320     srv-ad00.nurun.com:ldap  CLOSE_WAIT
  TCP    10.85.32.12:62982     paris-serveur01-12.nurun.com:http  TIME_WAIT
  TCP    10.85.32.12:62985     ks86997.kimsufi.com:http  TIME_WAIT
  TCP    10.85.32.12:62988     ks86997.kimsufi.com:http  TIME_WAIT
  TCP    10.85.32.12:62989     ks86997.kimsufi.com:http  TIME_WAIT
  TCP    10.85.32.12:62991     ks86997.kimsufi.com:http  TIME_WAIT
  TCP    10.85.32.12:62992     ks86997.kimsufi.com:http  TIME_WAIT
  TCP    10.85.32.12:63005     ks86997.kimsufi.com:http  TIME_WAIT
  TCP    10.85.32.12:63006     ks86997.kimsufi.com:http  TIME_WAIT
  TCP    10.85.32.12:63007     ks86997.kimsufi.com:http  TIME_WAIT
  TCP    10.85.32.12:63008     ks86997.kimsufi.com:http  TIME_WAIT
  TCP    10.85.32.12:63009     ks86997.kimsufi.com:http  TIME_WAIT
  TCP    10.85.32.12:63010     ks86997.kimsufi.com:http  TIME_WAIT
  TCP    127.0.0.1:19872        WORKSTATION-037.nurun.com:62653  ESTABLISHED
  TCP    127.0.0.1:61651        WORKSTATION-037.nurun.com:61652  ESTABLISHED
  TCP    127.0.0.1:61652        WORKSTATION-037.nurun.com:61651  ESTABLISHED
  TCP    127.0.0.1:61654        WORKSTATION-037.nurun.com:61655  ESTABLISHED
  TCP    127.0.0.1:61655        WORKSTATION-037.nurun.com:61654  ESTABLISHED
  TCP    127.0.0.1:62430        WORKSTATION-037.nurun.com:62431  ESTABLISHED
  TCP    127.0.0.1:62431        WORKSTATION-037.nurun.com:62430  ESTABLISHED
  TCP    127.0.0.1:62432        WORKSTATION-037.nurun.com:62433  ESTABLISHED
  TCP    127.0.0.1:62433        WORKSTATION-037.nurun.com:62432  ESTABLISHED
  TCP    127.0.0.1:62653        WORKSTATION-037.nurun.com:19872  ESTABLISHED
  TCP    192.168.56.1:8194      WORKSTATION-037.nurun.com:62744  ESTABLISHED
  TCP    192.168.56.1:62744     WORKSTATION-037.nurun.com:8194  ESTABLISHED

Leave a Reply

Your email address will not be published. Required fields are marked *