Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

h41

A lightweight tool that discovers all listening TCP ports on your machine with a TUI and optional web interface.

Features

  • 🔍 Discover all listening TCP ports via lsof
  • 🖥️ TUI (default) — interactive terminal interface with vim-like navigation
  • 🌐 Web UI — optional browser-based interface (--web)
  • 🔎 Live filtering by path, process name, port, or command args
  • 🏠 Smart filtering hides system processes by default (toggle to show all)
  • 💀 Kill processes with confirmation
  • 🔗 Open in browser — launch a port's URL directly
  • 📦 JSON output mode for scripting (--json)
  • 🔒 Secure by default — web server binds to localhost only

Installation

Homebrew (macOS/Linux)

brew tap 9h41/h41 https://github.com/9h41/h41
brew install h41

Scoop (Windows)

scoop bucket add h41 https://github.com/9h41/h41
scoop install h41

Download from GitHub Releases

Pre-built binaries for macOS, Linux, and Windows are available on the Releases page.

From source

cargo install --path .

Usage

# Start the TUI (default)
h41

# Start the web UI on port 8941
h41 --web

# Use a custom port for the web UI
h41 --web --port 8080

# Output JSON to stdout
h41 --json

TUI Keybindings

Key Action
j / Move down
k / Move up
o / Enter Open in browser
x Kill process (with confirmation)
/ Filter (type to search, Esc to close)
a Toggle show all / user-only
r Refresh
q / Esc Quit

Requirements

  • macOS or Linux with lsof available
  • Windows with netstat available (built-in)

License

MIT

About

Simple tool to list open ports on localhost, allows to kill process, view arguments, and open port using http

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages