Windows under Netstat-aon command

Source: Internet
Author: User
Tags fully qualified domain name

Netstat common commands under Windows platform

C:\users\administrator>netstat--Help shows 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, it is known that an executable program hosts multiple independent components, in which case the sequence of components involved in creating a connection or listening port is displayed. In this case, the name of the executable program is located at the bottom [], and the component it calls is at the top until the TCP/IP.  Note that this option can be time-consuming and may fail if you do not have sufficient permissions. -e Displays Ethernet statistics. This option can be used with the-The s option is used in combination. -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 process that is associated with each connection. -p Proto shows the connection of the protocol specified by proto; Proto can be any of the following: TCP, UDP, TCPv6, or UDPV6. If the-The S option is used together to display statistics for each protocol, Proto can be any one of the following: IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or  UDPv6. -r shows the routing table. -s displays statistics for each protocol. By default, statistics for IP, IPV6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6 are displayed;-the P option 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, netstat prints the current configuration information once. 

Windows platform
Execute under Windows command-line window:
C:>netstat-aon|findstr "80"
TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448
The port is occupied by a process number of 2448 and continues with the following command:

Review the process according to the process number:
C:>tasklist|findstr "2448"
Thread.exe Console 0 16,064 K
It's clear that thread is taking up your port, Kill it
If the second step is not found, then open the Task Manager, see which process is 2448, and then kill it.
If you need to see additional ports. You can get rid of 80.

Windows under Netstat-aon command

Related Article

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.