WinPortKill is a simple and powerful tool written in Go that helps you identify and free up occupied ports on Windows. When a port you need is in use, this program lists the processes using it and allows you to terminate them easily.
- Quick Detection: Displays a list of all processes using the specified port.
- Easy Termination: Terminate related processes with a single command.
- Lightweight & Fast: Built with Go, no complex dependencies required.
- User-Friendly: Suitable for both advanced users and beginners.
- Go version 1.18 or higher
- Windows operating system
- Clone the repository:
git clone https://github.com/yourusername/winportkill.git
- Navigate to the project directory:
cd winportkill - Build the program:
go build
- The executable
winportkill.exeis ready to use!
You can download the pre-built executable from the Releases section.
- Run the program:
./winportkill.exe
- Enter the port number (e.g.,
8080). - A list of processes using the port will be displayed (including PID and process name).
- To terminate a process, enter its PID or use the interactive options provided.
$ ./winportkill.exe
Port Kill CLI - Enter port number to scan (or 'q' to quit):
> 1234
Scanning Port ...
Open ports for 1234:
Address PID Process Name
------- --- ------------
127.0.0.1:1234 12412 LM Studio.exe
Options: Enter PID or process name to kill, 'all' to kill all, 'skip' to continue, or process name (e.g., node):
> 12412
Process with PID 12412 (LM Studio.exe) terminated successfully.- Run as Administrator: Terminating some processes may require running the program with Administrator privileges.
- Caution: Terminating system processes may cause system instability. Proceed with care.
If you have ideas for improvements or encounter issues, please open an Issue or submit a Pull Request.
- Fork the project.
- Create your feature branch (
git checkout -b feature/YourFeature). - Commit your changes (
git commit -m 'Add YourFeature'). - Push to the branch (
git push origin feature/YourFeature). - Open a Pull Request.
This project is licensed under the GNU General Public License v3.0 License - see the LICENSE file for details.
