Windows View Ports command

Source: Internet
Author: User
Tags fully qualified domain name

80 ports are occupied to see what program is taking up.

c:\users\zhaoliangang>netstat -ano | findstr   "  TCP  "   0.0.0.0:80             0.0.0.0:0               LISTENING        10524  TCP    0.0.0.0:135             0.0.0.0:0               listening       980  tcp     0.0.0.0:5800            0.0.0.0:0              listening        2600  TCP    10.230.16.191:51381     220.181.76.36:80       close_wait      8300  tcp     10.230.16.191:51385    220.181.76.21:80        CLOSE_WAIT      8300  TCP     10.230.16.191:51667    220.181.76.40:80       close_ wait      8300  tcp    10.230.16.191:53535     220.181.76.27:80       CLOSE_WAIT       8300  TCP    10.230.16.191:54794     220.181.76.76:80       close_wait      8300   TCP    10.230.16.191:54824    121.9.213.124:80        time_wait       0  tcp    10.230.16.191:54825     121.9.213.124:80       TIME_WAIT        0  tcp    10.230.16.191:54826    121.9.213.124:80        time_wait       0  tcp     10.230.16.191:54827    121.9.213.124:80        TIME_WAIT       0  TCP     10.230.16.191:54829    112.124.5.74:80        time _wait       0  tcp    10.230.16.191:54862     10.230.10.22:80        TIME_WAIT        0... 


Found

TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 10524


A process number of 10524 takes up 80 ports.

C:\users\zhaoliangang>tasklist | Findstr "10524" Skype.exe 10524 Console 1 127,496 K

Discover that Skype is taking up 80 ports.


Report:

Netstat command:

C:\USERS\ZHAOLIANGANG>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             shows the executable program involved in creating each connection or listening port.                  in some cases, Known executable program hosts multiple independent                  component, in which case the                is displayed when creating a connection or listening port Sequence of components for   . In this case, the name of the executable program                  At the bottom [], the component it calls is located at the top, up to                   to  TCP/IP. Note that thisoption can be time consuming, and you do not have a                  May fail if sufficient permissions are available.   -e             Display Ethernet statistics. This option can be used in conjunction with the  -s  option.   -f             displays the fully qualified domain name (FQDN) of the external address.   -n             Displays the address and port number in digital form.   -o             Displays the  id of the processes that are associated with each connection.   -p proto       Show  proto  The connection for the specified protocol;proto  can be any of the following                  what one:  tcp, UDP, tcpv6 , or  udpv6. If you are with  -s  select                   is used together to display statistics for each protocol,proto  can be any of the following                 :  ip, IPv6, ICMP, ICMPv6, TCP, TCPv6, udp                  or  udpv6.   -r             Displays the routing table.   -s             displays statistics for each protocol. By default, the display of                 ip, IPv6, ICMP, ICMPv6, TCP, TCPv6, udp , and  UDPv6           The statistics;-p  option for        can be used to specify a default subnet.   -t             Displays the current connection offload status.   interval       re-displays the selected statistics, the number of seconds between each display pause.                  Press  ctrl+c   Stop displaying statistics again. If omitted, the  netstat                 will print the current configuration information once. 


tasklist command:

C:\users\zhaoliangang>tasklist Image Name                         PID  Session Name                 session #        Memory Usage ======= ================== ======== ================ =========== ============system idle  Process              0  services                    0         24 KSystem                             4 Services                    0      2,428 ksmss.exe                         392 services                    0        104 Kcsrss.exe                        592 Services                    0      2,156 Kwininit.exe                     644  Services                    0        204 Kcsrss.exe                       660 Console                     1      36,400 Kwinlogon.exe                    708 Console                     1       1,180 Kservices.exe                    752 Services                    0       7,408 klsass.exe                       768 Services                    0      9,832 Klsm.exe                          776 Services                    0      3,004 ksvchost.exe                      876 Services                    0      4,892 Knvvsvc.exe                      940 services                    0       2,076 Ksvchost.exe                     980 Services                    0       5,892 KMsMpEng.exe                     428 Services                    0      83,068 k


Windows View Ports command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.