How to close TCP and UDP ports via windows command line

后端 未结 17 1617
忘掉有多难
忘掉有多难 2020-12-07 06:43

Does somebody knows how to close a TCP or UDP socket for a single connection via windows command line?

Googling about this, I saw some people asking the same thing.

17条回答
  •  隐瞒了意图╮
    2020-12-07 07:15

    For instance you want to free the port 8080 Then, follow these commands.

     netstat -ano
     taskkill /f /im [PID of the port 8080 got from previous command]
    

    Done!

提交回复
热议问题