Home / Prompts / Troubleshooting

What is using this port?

Fix 'address already in use' errors in seconds.

TroubleshootingInstant

The prompt

Something is already using port 3000. Tell me which program it is and its process ID, and ask me before stopping it.

What the AI will do

  1. Looks up which program is using the port.
  2. Shows the program name and its process ID.
  3. Asks you before stopping it.

On Windows, Mac and Linux

Windows: uses netstat or PowerShell. Mac: uses lsof. Linux: uses ss or lsof; seeing another user's process may need sudo.

How to use it

  1. Make sure Shellway is connected in ChatGPT, Claude or Cursor.
  2. Paste the prompt and change the folder names or paths to match your computer.
  3. Review the plan your AI shows before you confirm any changes.

Example reply

An illustration of a typical answer. Your AI will show the real files, names and numbers from your computer.

Port 3000 is used by node (PID 48213), started 2 hours ago from ~/code/old-project (npm run dev).
Stop it?

Good to know

Your AI shows its plan before it changes anything, and your rules on the computer still apply: read-only mode, allowed folders and blocked commands, with a backup before each file edit (safety rules). Works in ChatGPT, Claude, Claude Code and Cursor; the free plan gives 50 actions a day (pricing).

Related prompts