Add rm=192.168.1.40 to the /etc/printcap entry. My example is (faraday is the name of the machine with the printer): lp|hp710c:\ :lp=::rm=faraday:rp=lp:lf=/var/log/lpd-errs:sd=/var/spool/lpd:mx#0: