by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.5 - CODING/DEVELOP
Introduced first in SolidGeometry 4.5, Creation date: 2019-03-06, Last change: 2025-07-20
Only for toolbox developer (2025-08-09) - Not intended to be released
See Also: whoisIP
, whoisPID
, lastlogins
, whoislaunched
, sudokill
, whoislaunchagent
, userIP
whoisTCP
whoisTCP
This MATLAB function, whoisTCP, is designed to list active TCP/IP processes on a computer that are not associated with Apple products. It is part of the SolidGeometry library and was developed by Tim Lueth.
The function whoisTCP does not take any input parameters. It is executed as a standalone function.
system function. The command lsof -i 4tcp is used to list all open TCP connections. The lsof command is a Unix-based utility that lists open files and the -i 4tcp option filters the list to show only IPv4 TCP connections.grep command. However, this is not implemented in the current version of the function.The function outputs a list of active TCP connections directly to the console. It does not return any values or modify any variables within MATLAB.
The function includes a commented-out line that suggests the use of launchctl list | grep -v -e 'com.apple' to filter out Apple processes. This line is not executed in the current implementation.