Skip to content

Netstat is not finding a running localhost on MacOS Sonoma #43

@ovanderzee

Description

@ovanderzee

On MacOS Sonoma, a line like
'tcp46 0 0 *.8809 *.* LISTEN ' is not found.
One reason is the command args being ['-v', '-n'], which should be ['-a', '-n'] to find it in the netstat output.
Another reason could be the absence of a pid in this line. When I fit the line in the parser test, there are errors in the code that establishes the pid.
Also the test shows that parsing *.8809 results in port: null, address: null, which is not very informative.

NodeJS v20.11.0
MacOS Sonoma 14.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions