How to find the service that provides the service according to the port in Windows?

  

In the system, we often check the port, but when encountering a strange port, we need to find out which service is provided. This helps us analyze the port of the server. Usage and judging whether a virus is using the listening port, it has a certain security effect on the security of the server. Let's share with you how to find the service that provides the service according to the port in Windows

Tools/Materials

Windows Server

Computers

Methods/Steps

First we can see which TCPs are currently used in the Windows command prompt. Port

netstat -an |  Findstr TCP

We can see that the 135 TCP port is open in the system, but which service process is this port provided? We can use the command

netstat -ano to view the process PID corresponding to the port

so we can see that the port 135 is associated with the process PID 896, then the process PID 896 What kind of process is it?

We first open the task manager, click to view --- select the column

check the process PID, then we can look inside the task manager Go to the process's PID


We will open the process with PID 896 inside. At this point we can see that it is a service inside the system, with a specific process name.

If it is a Windows 7 system, you can also see the service description of this process, as shown below

The above example shows how to find the port number based on the system. The process of the service, you can also find the name of the associated process based on the port in your system.

Notes

This article is based on PID to use the command provider together with the task manager to find out what you want, you can also play a larger role according to your actual situation. effect.

The above is how to find the process method of providing services according to the port in Windows, I hope to help everyone!

Copyright © Windows knowledge All Rights Reserved