Command reference
ed ports who
ed ports who PORT [--json]Says which process listens on a TCP or UDP port, with its server label, PID, project folder, address and command line. When no visible process holds the port it says so and exits 0; a process of another user may still hold it. A port outside 1 to 65535 exits with a usage error. JSON output reports port, inUse and holders, with the same fields as ls.