Step 1 Press win+R key on our computer to open the run input cmd, and click OK, as shown in the following figure:
2
Step 2: After entering the command prompt interface, enter "netstat -ano", which is the command to view all the ports of the computer, as shown in the following figure:
three
Step 3: After pressing Enter, we can see all the ports of the computer and the PID corresponding to the ports. According to PID, we can find the corresponding process in the task manager, as shown in the following figure:
four
Step 4: We can also view a single port and enter the command "netstat -ano|findstr 80", that is, view port 80, as shown in the following figure:
five
Step 5: After pressing Enter, you can see the PID corresponding to port 80, as shown in the following figure:
six
Step 6: We can also open the task manager, display the PID, and find the process occupying the port according to the PID, as shown in the following figure: