Command line for looking at specific port

前端 未结 13 1207
孤街浪徒
孤街浪徒 2020-12-02 03:40

Is there a way to examine the status of a specific port from the Windows command line? I know I can use netstat to examine all ports but netstat is slow and looking at a spe

13条回答
  •  伪装坚强ぢ
    2020-12-02 04:02

    For port 80, the command would be : netstat -an | find "80" For port n, the command would be : netstat -an | find "n"

    Here, netstat is the instruction to your machine

    -a : Displays all connections and listening ports -n : Displays all address and instructions in numerical format (This is required because output from -a can contain machine names)

    Then, a find command to "Pattern Match" the output of previous command.

提交回复
热议问题