Skip to content

Lighthouse

Toshon edited this page Jun 20, 2026 · 1 revision

Lighthouse

Lighthouse is Perci's port scanning and service conflict detection tool. It shows you what's listening on your machine and helps you resolve conflicts.


What It Shows

  • Listening ports — every TCP port with a listening process
  • Process details — PID, process name, command path, parent PID
  • Conflict detection — when two services want the same port
  • Service identification — maps common ports to known services

Quick Port Check

The Quick Port Check card lets you type a port number and instantly see:

  • Whether it's in use
  • Which process is listening
  • The full command line
  • The parent process (useful for launchd/systemd services)

Conflict Resolution

When Lighthouse detects a conflict (two services on the same port), it offers a resolve modal that:

  • Shows both processes
  • Lets you kill one to free the port
  • Explains what each process is

Integration with PORTMASTER.md

Lighthouse is the interactive companion to the PORTMASTER.md file. While PORTMASTER.md is the single source of truth for port allocations, Lighthouse is the tool you use to check what's actually running and resolve conflicts in real time.


How It Works

Lighthouse uses lsof (macOS/Linux) to enumerate listening ports:

lsof -iTCP -sTCP:LISTEN -P -n

Results are parsed, deduplicated, and displayed in a sortable table. Parent PID resolution uses ps to walk the process tree.

Clone this wiki locally