<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I don't think sockstat would say anything about a port on another system that one did not have a connection to, it only reports network activity already involving the system it is run on. Telnet could of course attempt to connect. And nmap could tell you every port open on the other system (at least to packets coming from your system, if some filtering is in use), although some might regard an nmap scan as a preliminary to hostilities.<div class=""><br class=""></div><div class="">Telnet is in the inetutils port, as gtelnet.</div><div class=""><br class=""></div><div class="">nc can attempt to connect to either TCP or UDP ports, and is included with macOS. It has a lot of options, so read the man page carefully.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 12, 2023, at 13:56, André-John Mas <<a href="mailto:andrejohn.mas@gmail.com" class="">andrejohn.mas@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class="">I was looking for it based on a stack overflow article, indicating how to check a server I’d is responding on a given port. <div class=""><br class=""></div><div class="">Previously I was using telnet for this. <br class=""><br class=""><div dir="ltr" class="">André-John<div class=""><br class=""></div><div class="">Sent from my phone. Envoyé depuis mon téléphone.</div></div><div dir="ltr" class=""><br class=""><blockquote type="cite" class="">On 12 May 2023, at 13:33, Richard L. Hamilton <<a href="mailto:rlhamil@smart.net" class="">rlhamil@smart.net</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">If it is, I'm not finding it. I'm also not finding it in homebrew.<div class=""><br class=""></div><div class="">Looking around, the FreeBSD original is in C, but there is a perl script version of the same name and somewhat similar description (I did not compare in detail, and I doubt some of the FreeBSD features are feasible on macOS).<br class=""><div class=""><br class=""></div><div class=""><a href="https://github.com/freebsd/freebsd-src/tree/main/usr.bin/sockstat" class="">https://github.com/freebsd/freebsd-src/tree/main/usr.bin/sockstat</a></div><div class=""><br class=""></div><div class=""><a href="https://github.com/pj4dev/Mac-Sockstat" class="">https://github.com/pj4dev/Mac-Sockstat</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">The programs lsof and netstat that come with macOS may provide most of the same information, even if the usage, selection ability, and output format are different.</div><div class=""><br class=""></div><div class=""><br class=""><blockquote type="cite" class=""><div class="">On May 12, 2023, at 12:42, André-John Mas <<a href="mailto:andrejohn.mas@gmail.com" class="">andrejohn.mas@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">Is sockstat available in MacPorts, via a port'. I couldn't find it when search for it directly or as 'sostat' (homebrew formula name).<br class=""><br class="">Thanks<br class=""><br class="">Andre<br class=""><br class=""></div></div></blockquote></div><br class=""></div></div></blockquote></div></div></div></blockquote></div><br class=""></div></body></html>