How to check port status in Windows?

Sep 28, 2020 pm 04:06 PM
windows port

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 of this Website
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

Undress AI Tool

Undress AI Tool

Undress images for free

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.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Windows could not complete the installation [FIXED] Windows could not complete the installation [FIXED] Aug 25, 2025 am 03:34 AM

IfWindowsinstallationfailsorgetsstuck,trythesesteps:1.Disconnectexternaldevices.2.BootintoSafeMode.3.RepairsystemfilesviaCommandPromptusingsfcandDISM.4.ClearTPMandresetBIOS.5.PerformacleaninstallusingabootableUSB.

How to fix 'The credentials provided are not sufficient to access this printer' in Windows? How to fix 'The credentials provided are not sufficient to access this printer' in Windows? Aug 25, 2025 am 09:59 AM

Updateorre-enterprintercredentialsbyremovingstoredpasswordsandinputtingcorrectonesusingtheformatHOSTNAME\UsernameorDOMAIN\Username.2.OnthehostPC,enablefileandprintersharing,adjustsharingsettings,andsetthenetworkaccessmodeltoClassicorGuestonlyinLocalS

Fresh Guide: Fix Windows Printer Problems and Spooler Issues Fresh Guide: Fix Windows Printer Problems and Spooler Issues Aug 29, 2025 am 08:12 AM

IfyourWindowsprinterisn'tworking,trythesesteps:1.RestartthePrintSpoolerservice.2.Runthebuilt-inPrinterTroubleshooter.3.Reinstalltheprinterdriver.4.Manuallyclearstuckprintjobs.5.UseCommandPrompttoresetprintingcomponents.

How to use virtual private networks (VPN) on Windows How to use virtual private networks (VPN) on Windows Aug 26, 2025 am 07:20 AM

TosetupanduseaVPNonWindows,firstopenSettings>Network&Internet>VPNandclickAddaVPNconnection;1.SetVPNprovidertoWindows(built-in);2.Enterarecognizableconnectionname;3.Inputtheservernameoraddressprovided;4.SelectthecorrectVPNtype(e.g.,IKEv2,L2T

'Windows can't find one of the files in this theme' [Fixed] 'Windows can't find one of the files in this theme' [Fixed] Aug 28, 2025 am 06:44 AM

First, confirm whether the theme file is complete. 1. Enter the corresponding theme folder of C:\Users\YourName\AppData\Local\Microsoft\Windows\Themes\; 2. Check whether the .theme file exists; 3. Confirm whether the referenced picture is in the Backgrounds subfolder; 4. Verify whether the referenced .msstyles file actually exists; if any file is missing, you need to download the theme package and install it correctly to solve the problem.

What is a pass key? How to create it? OEE Exchange's pass key tutorial ((APP/Web) What is a pass key? How to create it? OEE Exchange's pass key tutorial ((APP/Web) Aug 29, 2025 pm 03:54 PM

What is Pass Key Pass Key is a new type of authentication technology that allows users to access their accounts without manually entering their password when logging into a website or application. Through the pass key, users can complete identity authentication using fingerprint recognition, facial scanning or device unlocking methods (such as PIN code). This technology is based on the encryption key pair mechanism, providing efficient and secure protection capabilities, and effectively resisting cyber threats such as phishing attacks. Advantages of Pass Key 1. Password-free login, which is more convenient to operate: use fingerprints, faces and other biometric methods to log in directly to the account, so as to save the hassle of repeatedly entering passwords and avoid login failures caused by entering the wrong password. 2. Stronger security: Pass keys follow technical standards formulated by the FIDO Alliance and W3C, and use asymmetric encryption algorithms to replace traditional secrets.

How to find the classic Control Panel items in Windows How to find the classic Control Panel items in Windows Aug 26, 2025 am 07:12 AM

TheclassicControlPanelinWindows10and11canbeaccessedviaStartmenusearch,Runcommand(control),FileExplorer,orright-clickingtheStartbutton.2.ControlPaneloffersthreeviews:Category,Largeicons,andSmallicons,withiconviewsbeingfastestforlocatingspecifictools.3

How to turn off advertising ID in Windows How to turn off advertising ID in Windows Aug 27, 2025 am 06:03 AM

OpenSettingsviatheStartmenu,thengotoPrivacy&security(orPrivacyonWindows10).2.ClickGeneralintheleftmenuandlocatetheadvertisingIDoption.3.Toggleoff"LetappsuseadvertisingIDtomakeadsmoreinterestingtoyoubasedonyourappactivity"todisableit.Dis

See all articles