Table of Contents
Check what software is occupied
The occupied process cannot be found
Possible reasons why Windows reserves these ports:
Solution:
Home Computer Tutorials Troubleshooting Solution to Windows system port being occupied, reasons why the port is occupied

Solution to Windows system port being occupied, reasons why the port is occupied

Jun 19, 2024 am 03:34 AM
port computer repair Remote computer repair Remote maintenance

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.

Solution to Windows system port being occupied, reasons why the port is occupied

#2) In the task manager, for detailed information, you can find the corresponding process according to the PID.

Solution to Windows system port being occupied, reasons why the port is occupied

#3) Check the PID according to the occupied port, use run to open cmd, enter the following command directly, and press Enter.

Solution to Windows system port being occupied, reasons why the port is occupied

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

Solution to Windows system port being occupied, reasons why the port is occupied

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!

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

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)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

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)

Soundbar detected as monitor screen on Windows PC [Fix] Soundbar detected as monitor screen on Windows PC [Fix] Feb 19, 2024 pm 11:42 PM

On Windows PCs, some users have discovered that the Soundbar is recognized as a monitor when connected to the HDMI port. This may cause some confusion, but the solution is not the only one. How to Connect a Soundbar to a PC via HDMI Most soundbars use HDMI, optical, or 3.5mm audio connections. If your soundbar only supports HDMI connections, it must be connected to an HDMI port labeled HDMIARC. Many TVs or monitors are usually equipped with multiple HDMI ports, one of which should support the ARC protocol that complies with the HDMI standard. In other words, HDMI is an interface used to transmit audio and video. If the device does not have an HDMI port, consider using a monitor.

How to check whether the remote server port is open in Linux How to check whether the remote server port is open in Linux Mar 21, 2023 am 09:50 AM

How to check whether the remote server port is open in Linux: 1. Use the "nmap ip -p port" command to check whether the port is open. The specific command is such as "nmap 172.17.193.18 -p 5902"; 2. Use the "nc -v ip port" command Check whether the port is open. The specific command is "nc -v 172.17.193.18 5902".

What ports are com1 and com2? What ports are com1 and com2? Aug 25, 2022 am 10:53 AM

com1 and com2 are serial communication ports, referred to as serial ports; a motherboard generally has two COM serial interfaces, which are usually used to connect mice, which are communication devices. The serial interface refers to the sequential transmission of data bit by bit, which is characterized by communication The circuit is simple, and only a pair of transmission lines can achieve two-way communication.

How to use EasyTier remote networking How to use EasyTier remote networking Jun 19, 2024 am 10:14 AM

EasyTier is an open source, free, decentralized intranet penetration remote networking tool. It is an easy-to-use and feature-rich remote networking solution, suitable for remote office collaboration, game connection and other scenarios. The following is a brief introduction to how to use EasyTier remote networking. Download the easytier-gui program and install it. Download address: https://github.com/EasyTier/EasyTier Just set it up as shown above on the computer that needs to be networked. Virtual IPv4 address: required. For example, computer A is 10.10.10.1, B is 10.10.10.2, and C is 10.10.10.3. It cannot be repeated. (Such IP segments are available: 10.

How to close port 445 in Win11 How to close port 445 in Win11 Jul 04, 2023 pm 12:17 PM

How to close port 445 in Win11? Port No. 445 is a TCP port, a shared folder and printer port, which provides file or printer sharing services within the LAN. Recently, some Win11 users want to close port 445, so how should they do it? Many friends don’t know how to operate in detail. The editor below has compiled the detailed operations for closing port 445 in Win11. If you are interested, follow the editor to read below! Detailed operation of closing port 445 in Win11 1. First, press the Win+S key combination, or click the search icon on the bottom taskbar, open the Windows search window, enter Windows Firewall at the top, and then click the best option given by the system.

Fix AHCI Port 0 Device Error on Windows Computer Fix AHCI Port 0 Device Error on Windows Computer Feb 19, 2024 pm 12:45 PM

If you encounter an AHCI port 0 device error every time you start your computer, you need to follow the methods provided in this article to solve the problem. What is AHCI port 0 device error? AHCI device errors are reported by the BIOS. SMART has indicated that the hard drive on port 0 is faulty and may not be accessible. The hard drive may have problems at any time. If it is a desktop computer, it is recommended to try changing the hard drive connection port. If the problem persists, it may be a problem with the hard drive itself. You can run a disk check tool, disable the failed hard drive and check the ports to resolve this issue. Fixing AHCI Port 0 Device Errors on Windows Computers Typically, AHCI Port0 device errors do not originate from operating system issues, but rather from the hard drive failing on port 0.

Your iPhone won't charge after iOS 17 update? Here's what you can do Your iPhone won't charge after iOS 17 update? Here's what you can do Sep 21, 2023 pm 11:41 PM

What is the cause of iOS17 charging problem? There are several possible reasons why your iPhone may not be charging after updating to iOS17. One possibility is that there is a bug in the software update. Apple is usually quick to fix bugs in iOS updates, so if you're having charging issues it's worth checking to see if a new update is available. Another possibility is that there is a problem with the charging cable or adapter. If you're using a third-party charging cable or adapter, make sure it's certified by Apple. How to Fix iPhone Not Charging Issue Here are some tips on how to fix iPhone not charging issue after iOS17 update: Restart your Apple phone This usually resolves minor issues that may be the root cause of iOS17 charging issue

What to do if there is an error in docker mapping port What to do if there is an error in docker mapping port Oct 21, 2022 pm 03:29 PM

Solution to docker mapping port error: 1. Switch to the root account; 2. Use the "netstat -nap" command to check the pid of the program running; 3. Use the "kill -9 2901 su u260517" command to kill the program and switch the program. .

See all articles