The nc(1) -z option uses getservbyport(3) to test the connection. For TCP, it will report a message only upon successful 3-way handshake. From this, where there is no report:
Code:
Bear$ nc -z 192.168.1.2 80
Connection to 192.168.1.2 80 port [tcp/www] succeeded!
Bear$ nc -z 192.168.1.2 9100
Bear$
and this:
Quote:
The above output is with pf=NO in my /etc/rc.conf.local.
|
I can jump to the conclusion that port 9100 is not open on the printer. I could be wrong, of course. I often am.
FYI: Port 9100 is the default for HP's JetDirect protocol, though of course many printers may use it for multiple protocols. You might try using the default port for lpd(8), which is 515. See /etc/services.