I need to build a simple web based printer server that will print a file to any given printers IP address
Using lp or lpr how can I print a file directly to a network printer by IP address? NOTE: The printer will NOT be setup in CUPS locally as it needs to have the ability to print to any IP address thrown at it.
What I have tried:
lp -d 10.11.234.75 /path/to/file
lpr -P 10.11.234.75 /path/to/file
Both give this: 'The printer or class does not exist.'
From the main menu on the task bar, click "System Settings" and then click "Printers." Then, click the "Add" button and "Find Network Printer." When you see the text box labeled "Host," enter either a hostname for the printer (such as myexampleprinter_) or an IP address where it can be reached (such as 192.168.
Try this:
cat you_file.prn | netcat -w 1 printer_ip 9100
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With