whoisTCP

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

returns the active TCP/IP Process that are not applec products


Only for toolbox developer (2025-08-09) - Not intended to be released


See Also: whoisIP , whoisPID , lastlogins , whoislaunched , sudokill , whoislaunchagent , userIP

Example Illustration

 missing image of whoisTCP

Syntax

whoisTCP

Examples


whoisTCP




Copyright 2019-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

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.

Input Parameters

The function whoisTCP does not take any input parameters. It is executed as a standalone function.

Function Workflow

  1. The function begins by printing a header message to the console, indicating that it will list open connections on the computer.
  2. It then executes a system command using MATLAB's 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.
  3. The function does not filter out Apple processes directly in the code, but the comment suggests that the original intention was to exclude them using a grep command. However, this is not implemented in the current version of the function.
  4. After executing the system command, the function prints a newline character to the console for formatting purposes.

Output

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.

Additional Notes

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.

Algorithm explaination created using ChatGPT on 2025-08-18 23:26. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-08-09