To view the port status:
Enter cmd at start-run and nHungry tstat-an at the command line window; See that the port behind the monitor is an open port. If you want to see more information, you can enter netstat-help;; Check the help.
See which program is using the port:
Method 1:
1. In Start-Run, enter cmd and press Enter, and the Run window will appear.
2. Enter netstat -ano enter at the prompt to find the pid corresponding to tcp 80 port, such as 1484.
3.ctrl+alt+del opens the task manager and selects the process. How to find many running programs here? Don't worry about the above view-select the column before PID (process identifier)-tick. Ok, the following processes all start with PID number. At this time, the PID found in the previous step is useful. Find 1484, such as PEER.EXE, and end the process. At this time, open the server again and see that the WEB can be started!
Method 2:
Execute in a windows command line window:
c:\ & gt; netstat -aon|findstr 80
TCP127.0.01:800.0.0: 0 Monitoring 2448
Look, the port is occupied by the process with process number 2448. Continue with the following command:
c:\ & gt; Task list |findstr 2448
Thread.exe 2016 console 0 16064K
Very clear, isn't it? Thread is occupying your port, kill it.
If the second step cannot be found, open the task manager to see which process is 2448, and then kill it.
If you need to see other ports. Just change it to 80.
Question 2: How to check which ports of the computer are occupied? 1. Enter cmd at the beginning of C running and press Enter to open the running window.
2. Enter netstat -ano enter at the prompt to find the pid corresponding to tcp 80 port, such as 1484.
The above is not clear and concise:
If we need to determine who is occupying our port 80.
1, Windows platform
Execute in a windows command line window:
C:\netstat -aon|findstr 80 "
TCP127.0.01:800.0.0: 0 Monitoring 2448
Look, the port is occupied by the process with process number 2448. Continue with the following command:
C:\tasklist|findstr 2448 "
Thread.exe 2016 console 0 16064K
Very clear, isn't it? Thread is occupying your port, kill it.
If the second step cannot be found, open the task manager to see which process is 2448, and then kill it.
If you need to see other ports. Just change 80 to another port.
Question 3: How to check whether the port is occupied by anyone? Regarding how to check whether the port is occupied, you can follow the following steps:
1, start-> run -> Cmd, or press window+R to bring up the command window;
2. Enter the command: netstat -ano lists all ports. Watch the occupied ports in the list, such as 49 157, and find them first.
3. Check the PID corresponding to the occupied port, enter the command: netstat-aon | findstr49157, press enter, and write down the last digit, namely PID, here is 2720.
4. Continue to enter tasklist|findstr 2720, and press Enter to see which process or program occupies port 2720. The result: svchost.exe.
Question 4: How to check whether the port is occupied by anyone? Regarding how to check whether the port is occupied, you can follow the following steps:
1, start-> run -> Cmd, or press window+R to bring up the command window;
2. Enter the command: netstat -ano lists all ports. Watch the occupied ports in the list, such as 49 157, and find them first.
3. Check the PID corresponding to the occupied port, enter the command: netstat-aon | findstr49157, press enter, and write down the last digit, namely PID, here is 2720.
4. Continue to enter tasklist|findstr 2720, and press Enter to see which process or program occupies port 2720. The result: svchost.exe.
Question 5: How to check whether the tcp port is occupied netstat -tnpl or ss -tnpl? Here, just tl, T stands for tcp protocol, and L stands for listen.
Question 6: How to check whether the port is occupied by anyone? How to check whether the port is occupied can follow the following steps:
1, start-> run -> Cmd, or press window+R to bring up the command window;
2. Enter the command: netstat -ano lists all ports. Watch the occupied ports in the list, such as 49 157, and find them first.
3. Check the PID corresponding to the occupied port, enter the command: netstat-aon | findstr49157, press enter, and write down the last digit, namely PID, here is 2720.
4. Continue to enter tasklist|findstr 2720, and press Enter to see which process or program occupies port 2720. The result: svchost.exe.
Question 7: How to check the port status and port occupancy? When building a web platform, many people will encounter the situation that a certain port is occupied. If you want to check which program occupies a port in order to complete it, or you want to see other open ports, you can use the following methods (the command is in red font): Check the port status: enter cmd at start-run, and enter netstat-an; at the command line window; See that the port behind the monitor is an open port. If you want to see more information, you can enter netstat-help;; Check the help. Check which program is occupied by a port: method 1: 1. Enter cmd in Start-Run and press Enter, and the Run window will appear. 2. Enter netstat -ano enter at the prompt to find the pid corresponding to tcp 80 port, such as 1484.3.ctrl+alt+del to open the task manager and select the process. How to find many running programs here? Don't worry about the above view-select the column before PID (process identifier)-tick. Ok, the following processes all start with PID number. At this time, the PID found in the previous step is useful. Find 1484, such as PEER.EXE, and end the process. At this time, open the server again and see that the WEB can be started! Method 2: Execute in the windows command line window: c: \ netstat-aon | Find STR80tcp127.0.0.1:800.0.0: 0Listening 2448. Yes, the port is occupied by the process with the process number of 2448. Continue to execute the following command: cTasklist | Findstr 2448thread.exe 2016Console 01064k Obviously, the thread has occupied your port. If Kill it is not found in the second step, open the task manager to see which process is 2448, and then kill it. If you need to see other ports. Just change it to 80.
Question 8: How to check which ports are occupied by the software running in the computer? The "Resource Manager" that comes with windows system can check the port usage, and the specific operation method is as follows:
(1) As shown by the red arrow in the figure below, right-click the taskbar and select Task Manager from the pop-up right-click menu:
(2) As shown in the red circle in the figure below, in the Task Manager, switch to the Performance tab, and then click Open Resource Manager:
(3) In the resource manager, click Network, and check the process to be queried in the network activity process. At this point, the bottom bar of the listening port will show the port used by the process (software):
Question 9: How to check which process the port number is occupied during the debugging of network programs? Unexpected things often happen, such as the failure to create TCP services. At this time, it is often necessary to check the network situation of the system. Of course, the most commonly used network packet capture mode is not WireShark mode. But often you only need to check the usage of a port, whether it is occupied by that process (corresponding to PID) or whether you need to kill it. If you are in the Windows operating system, you can use the netstat command to query the PID, and then you can open the task manager to check the process name corresponding to this PID. If PID is not displayed, select PID in the menu view selection bar; When we know the process, we can kill it. Let me briefly talk about the processing methods I know under Windows and Linux systems. (If we need to determine who is occupying our 90 10 port) 1, Windows platform is executed under the Windows console window: netstat-nao | findstr9010tcp127.0.0.1:9010.0: 0 Monitor 30 17. You see the PID is 30/. The process of 7 takes up 9. You can use the following command: tasklist | findstr 30 17 If you want to terminate this process, you can of course terminate it in the task manager as described above, but if you want to be more efficient, you can use the taskkill command. Taskkill /pid 30 17 Then this process will be annihilated:) 2. Linux If you are a Linux enthusiast, you should be familiar with this command, netstat -pan | grep 90 10. If you are a little more careful, you will find that you are using the netsta command. In fact, Netstat is a general network statistics command, which is applicable to almost all popular operating systems, whether Linux, Window, other Unix or Unix-like operating systems, and the usage is basically the same. The following is a detailed description of netstat command line parameters in Windows system. Format: netstat [-a] [-e] [-n] [-o] [-p protocol] [-b] [-r] [-s] [-v] [interval] Description: -a shows all connections and listening ports. -n Displays the address and port number as numbers. -o Displays the owning process ID associated with each connection. -p In Windows systems, this option is used to specify a subset of the default cases. Proto displays the connection of the protocol specified by Proto; Proto can be one of the following protocols: TCP, UDP, TCPv6 or UDPv6. If used with the -s option to display statistics by protocol, proto can be one of the following protocols: IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP or UDPv6. -b Displays the executable components involved in creating each connection or listening port. In some cases, executable components are known to have multiple independent components, and in these cases; The sequence of components involved in creating a connection or listening port is displayed. In this case, the executable component name is at the bottom in [], the component it calls is at the top, and so on until the TCP/IP part. Please note that this option may take a long time, and it may fail if you do not have sufficient rights. -e Displays Ethernet statistics. This option can be used in combination with the -s option. -s displays statistics by protocol. By default, statistics of IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP and UDPv6 are displayed. -r displays the routing table. The -v option, when used with the -b option, displays the components included when creating a connection or listening port for all executable components. Interval redisplays the selected statistics, pausing the time interval (in seconds) between each display. Press CTRL+C to stop redisplaying statistics ... >>
Question 10: How to sign in in windows? What application does the port occupy? netstat -aon | findstr 80.
Original local address external address state PID
==== ============ ============== ========== ======
TCP 0.0.0.0:80 0.0.0.0:0 Listening 1688
As you can see, port 80 is occupied by a program with process number 1688.
Task list | findstr 1688
Image Name PID Session Name Session Number Memory Usage
========================= ====== ================ ======== ============
Inetinfo.exe1688 console 0 2800K
Obviously, inetinfo occupies 80 ports; Inetinfo.exe is mainly used to support the debugging of Microsoft Windows IIS network services, which is very important for the normal operation of your system.
taskkill /pid 1688 /F
Success: The process with PID of 1688 was terminated.