search

How to check port status in Windows?

Sep 28, 2020 pm 04:06 PM
windowsport

How to check the port in Windows: 1. Use the "win r" key to open the "Run" window, enter the "cmd" command and press Enter to enter the command prompt; 2. Enter "netstat -ano in the cmd window "Command and press Enter to display all port occupancy status.

How to check port status in Windows?

How does windows check the port to know which program is occupying the port, and then process it? Let me introduce it to you in this article.

Step 1. View all ports in Windows

Click Start in the lower left corner of the computer, then select the Run option to open the "Run" window (use the "win r" key to open), enter the [cmd] command to enter the command prompt. Then we enter [netstat -ano] in the window and press Enter, and all port occupancy status will be displayed. As shown in the figure:

How to check port status in Windows?

Step 2. Query the specified port occupation

In the window, continue to enter [netstat -aon |findstr "prompted port"], for example, the port prompted by the editor is 2080, then the editor enters the command as [netstat -aon|findstr "2080"], and after pressing Enter, you can see the PID in the list, and then according to the PID Check the corresponding occupying program in the computer's task manager, and then close it.

Step 3. Query the progress corresponding to the PID

If after the above steps, we get the PID 2016, then we can enter the command [tasklist|findstr "2016"], the name displayed on the first line is the program name, so that we can understand the port occupied by that program.

Step 4. Then we enter the command [taskkill /f /t /im program name].

How to check port status in Windows?

The above is the detailed content of How to check port status in Windows?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor