node-netstat icon indicating copy to clipboard operation
node-netstat copied to clipboard

Netstat is not finding a running localhost on MacOS Sonoma

Open ovanderzee opened this issue 1 year ago • 0 comments

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

ovanderzee avatar Jan 27 '24 22:01 ovanderzee