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
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
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
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
<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
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
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