Updating Printer Addresses

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 under the <Printer YOUR_PRINTER_NAME> tag and named DeviceURI. The 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