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