/CloseSocket

Closes TCP sockets that match given criteria

Primary LanguageC#MIT LicenseMIT

CloseSocket

A command line application that closes local TCP sockets. Suppoets IPv4 and IPv6.

Needs .NET 8 to run.

To close TCP sockets you must be an administrator, and run the program with administrative permissions

Usage

Use /? argument to get command line help

Filters

Connections can be filtered by:

  • Local endpoint (ip and/or port)
  • Remote endpoint (ip and/or port)
  • Connection state
  • Owning process id