The specified port is open view windows at

Sometimes there will be ip ping through but is not connected to the case. This time we need to test to see whether the port is open

 

netstat -ano -p tcp | find "3389"> nul 2> nul && echo 3389 port is turned || echo 3389 is not turned on

 

This order is 3389 if the port is turned on output port 3389 is turned on or not turned on echo 3389

 

There is also a command to check whether the port is on

Open telnet client telnet 127.0.0.1 8080 // If you pass, then there will be another black dos window, if there is need to set telnet command not found themselves under the Baidu

 

Guess you like

Origin www.cnblogs.com/bdqczhl/p/11260423.html
Recommended