


Solution to Windows system port being occupied, reasons why the port is occupied
The port is occupied and the operation of the website is affected. Let PHP Editor Banana help you solve your problems! This article will deeply analyze the reasons why the port is occupied and provide a series of effective solutions. Come discover how to easily free up ports and keep your website running smoothly!
When running the software, the port will be occupied. Let’s talk about how to solve it.
Check what software is occupied
1) Use Run to open cmd, directly enter netstat -ano and press Enter. You can see the PID of port 135=1316 and the PID of port 445=4.
#2) In the task manager, for detailed information, you can find the corresponding process according to the PID.
#3) Check the PID according to the occupied port, use run to open cmd, enter the following command directly, and press Enter.
netstat -aon | find "8681" or netstat -aon | grep "8681"
# is to check the occupancy of a single port 8681
netstat -aon | findstr "80" or netstat -aon | findstr :80
# is to view a series of ports containing 80, such as 800, 8080
4) According to the process number Kill the process "taskkill -f -pid 5072" or "taskkill /T /F /PID 5072", or find the corresponding process in the task manager and end the process directly.
The occupied process cannot be found
It indicates that the port is occupied, but the occupied process cannot be found. The reason is that Windows reserves some ports that happen to be in the port sequence reserved by the system.
Use the following command to view
netsh interface ipv4 show excludedportrange protocol=tcp
If there is nothing in the above picture, it means it is not listed as reserved by the system. The port, if available, will be displayed in a red box.
Possible reasons why Windows reserves these ports:
Blocked by Microsoft due to discovery of virus activity
After installing windows update, the list of reserved ports has changed
Enable Hyper-V feature (install docker, or Linux virtual machine)
Solution:
1. Restart the computer until the required port is no longer among the reserved ports (depending on luck)
2. If the software can change the port, directly change other ports
3. Exclude these reserved ports
netsh int ipv4 add excludedportrange protocol=tcp startport=8888 numberofports =10
Here 8888 is the starting port, and 10 means that all ports 8888-8898 must be moved out of the reserved ports. If you only want 8888 not to be used as a port, then 10 can be changed to 1.
After executing this command, restart and query the reserved ports again. You will find that a * will appear at the end of the port list. At this time, these ports will not be reserved for use.
The above is the detailed content of Solution to Windows system port being occupied, reasons why the port is occupied. For more information, please follow other related articles on the PHP Chinese website!

Encountering a fatal error in RuneScape: Dragonwilds? Many players experience this frustrating issue. This guide offers five potential solutions to get you back in the game! Troubleshooting RuneScape: Dragonwilds Fatal Errors RuneScape: Dragonwilds,

The popular 2025 game, Schedule 1, recently faced a malware scare. Two popular mods, Froggyp’s Increased Stack Size Limit and Backpack Mod Reupload, were discovered to contain Trojan viruses. The Schedule 1 subreddit issued a warning and the mods w

Microsoft Office remains to be among the most fundamental packages of software both for home and business use. From writing reports in Word, editing spreadsheet

RuneScape: Dragonwilds Black Screen Problem Solving Guide Many players encounter black screen problems when starting RuneScape: Dragonwilds, which causes the game to not run normally. Don't worry, this guide offers a variety of solutions to help you get back to the Dragon's Wilderness! RuneScape on PC: Dragonwilds black screen problem RuneScape: Dragonwilds is an open-world multiplayer online game spin-off that supports up to four-player teams, challenging dangerous environments full of dangerous creatures (especially dragons). Like other games, RuneScape: Dragonwilds has some malfunctions, such as black screen questions

Windows updates are designed to bring enhancements, new features, and critical security fixes to the system. Updates are regularly issued by Microsoft and are m

NVIDIAs Dynamic Super Resolution (DSR) is a sophisticated feature that runs games at higher resolutions and then scales them down to your monitors native resolu

This guide explains how to remove the Trojan:Win32/Etset!rfn virus and protect your computer from future threats. Windows Security's warning about Trojan:Win32/Etset!rfn indicates a Trojan horse infection. This malware often disguises itself as legi

This MiniTool guide explains how to resolve the RESULT_CODE_MISSING_DATA error in Chrome or Edge browsers. This error prevents websites from loading due to missing or inaccessible data. The likely causes are corrupted browser data, outdated browser


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Chinese version
Chinese version, very easy to use

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Atom editor mac version download
The most popular open source editor

Zend Studio 13.0.1
Powerful PHP integrated development environment