Re: sockstat

2023-05-21 Thread Sriranga Veeraraghavan
Hi, If you have a recent version of MacOS, you may be able to use the Apple provided version of netcat (/usr/bin/nc) to check if a server is responding / listening on a particular port, as follows: /usr/bin/nc -z [server] [port] which, for your example below, would be: /usr/bin/nc -z 198.168

Re: sockstat

2023-05-21 Thread André-John Mas
It could do the job, looking at the documentation: nmap –p 80 192.168.0.1 Thanks On Sat, May 13, 2023 at 7:00 AM Dave Horsfall wrote: > > On Fri, 12 May 2023, André-John Mas wrote: > > > I was looking for it based on a stack overflow article, indicating how to > > check a server I’d is respon

Re: sockstat

2023-05-12 Thread Dave Horsfall
On Fri, 12 May 2023, André-John Mas wrote: > 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.  > Previously I was using telnet for this.  Will "nmap" do what you want? It's in MacPorts. -- Dave

Re: sockstat

2023-05-12 Thread Richard L. Hamilton
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 syste

Re: sockstat

2023-05-12 Thread André-John Mas
<andrejohn@gmail.com> wrote:Hi,Is sockstat available in MacPorts, via a port'. I couldn't find it when search for it directly or as 'sostat' (homebrew formula name).ThanksAndre

Re: sockstat

2023-05-12 Thread Richard L. Hamilton
e on macOS). https://github.com/freebsd/freebsd-src/tree/main/usr.bin/sockstat <https://github.com/freebsd/freebsd-src/tree/main/usr.bin/sockstat> https://github.com/pj4dev/Mac-Sockstat <https://github.com/pj4dev/Mac-Sockstat> The programs lsof and netstat that come with macOS may pr

sockstat

2023-05-12 Thread André-John Mas
Hi, Is sockstat available in MacPorts, via a port'. I couldn't find it when search for it directly or as 'sostat' (homebrew formula name). Thanks Andre