Port occupancy (Port View)
Hello everyone, Lin Fei to answer the above questions, port occupation, port view many people do not know, now let's take a look at it!
To check the status of a port, use the command [Netstat-ano | findstr 'port number'] (without parentheses). Take the port [1068] as an example, the displayed status PID is [3840]. To see the status of all ports, use the command [Netstat-ano] (without parentheses).
Netstat View Port statu
1. Check whether the port is occupied by that PID: specifically check the port, use the command Netstat-ano | findstr [port number], as shown in the figure, the last column is PID. In the figure, the port number is 1068 and the corresponding PID is 3840
two。 Method 2: check all, and then find the corresponding port and PID
These are the commands for netstat to check the status of the port. Of course, there are many different ways to check port status commands in Linux and Windows systems, and query methods are also different. I hope it can be helpful to all of you.
At the end of this article, I hope it will be helpful to you.