How to Check Port Occupancy in Windows

Sometimes when running a program under Windows, it often fails to run because the port is occupied, and there is no direct way to view the port under Windows. Below I will share with you two methods to view the port occupancy.

Tools /Materials
  • CMD command line
  • 360 Security Guard
  • TcpView


The command line method

starts - run, enter CMD to open the command line interface, enter the command
netstat -ano | findstr "80" (note 80 is the port number you want to see),
output will include the use of port 80. The
specificLine is
Protocol


If you want to see which process a process is, you can use the following command
tasklist | findstr "5584" (note that 5584 is the id or PID of the process)


Reference: http://jingyan.baidu.com /article/37bce2be10a5c21002f3a2cf.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326399223&siteId=291194637