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 <[email protected]> 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 <[email protected]> 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:[email protected]
