sockstat
Sriranga Veeraraghavan
sriranga at berkeley.edu
Mon May 22 06:24:52 UTC 2023
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.0.1 80
HTH,
-ranga
> On May 21, 2023, at 12:06, André-John Mas <andrejohn.mas at gmail.com> wrote:
>
> 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 <dave at horsfall.org> 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 responding on a given port.
>>> Previously I was using telnet for this.
>>
>> Will "nmap" do what you want? It's in MacPorts.
>>
>> -- Dave
>
>
>
> --
> mailto:andrejohn.mas at gmail.com
More information about the macports-users
mailing list