> I want to set up printing to a TCP/IP printer for which I know the IP
> address. Can anyone point me in the right direction?
> I've checked out http://www.freebsd.org/handbook/printing-advanced.html
> but the examples it gives here assume I know the port the printer is
> listening to - which I don't.
If you have an "IP printer" then it should have an LPD server capability.
I believe that port 515 is used for LPD connections, but you don't really
need to worry about that for setting up printing, unless you happen to know
that the printer has an LPD function using a different port number.
You do need to know whether the printer is PostScript capable, or not.
A simple /etc/printcap entry for an IP printer (+LPD server) might look
A PostScript printer usually has as least two "printer queues" (or modes): text,
and 'raw' (for PJL and PS). A non-PostScript printer may have only one "print
queue", or none at all. Obviously, you will need to substitute the proper IP
address and files if they do not match the example above. If you specify a
Spool Directory, then you need to create it, and CHOWN it to DAEMON.
Then you simply do "lpr -Premoteprtr ..." or "lp -dremoteprtr ..." to print,
assuming that you have a network connection with/to the printer, of course.