This short post will show how to update a network printer’s IP address in CUPS. I’m tired of searching for how to do this.
First, determine your printer’s new IP address.
Second, locate the old URI in
/etc/cups/printers.conf. It should be
<Printer YOUR_PRINTER_NAME> tag and named
IP address will probably be a query param in the URI.
Next, update CUPS with the new URI by replacing the old IP with the new one and executing:
# lpadmin -p YOUR_PRINTER_NAME -v scheme:/path/path?ip=NEW_IP