node-netstat
node-netstat copied to clipboard
Netstat is not finding a running localhost on MacOS Sonoma
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