Check the port number, closed

Case netstat -ano, list all ports: Enter the cmd command window command

netstat -aon | find "135", enter, write down the last digit, ie PID, here is 972.

Continue to enter tasklist | find "972", Enter, see which program or process takes up 972 port, the results are: svchost.exe

The end of the process: taskkill / f / t / im svchost.exe

(PID number can directly end: taskkill / pid 972 / f)

Test whether to open a port

Enter the command cmd command window: start / min telnet 192.168.3.42 8080
appears after a window is minimized, you later on, if the window is automatically closed, indicating port is closed or not ping a host, and vice versa port open.

netstat -anp tcp can see what the current host tcp open port.
netstat -anp tcp 80 can view the current host tcp80 port.

Guess you like

Origin blog.51cto.com/14148388/2464268