Update IP Address of Linux Printer

Issue/Symptom/Question

How do I change the IP for a linux printer?

Applies To

Linux OS
Linux Printer

Resolution/Fix/Answer

Note: To change the IP of a linux server requires root access on the linux server.

Prep: You will need to know the current IP of the linux printer and the IP that you want to change it to.

  1. Login into the Linux Server as 'Root' using RDM's password
  2. Search for the existing printer using: cd /usr/local/bin
  3. Type ls
  4. type lpstat -t.  You will see a list of printer devices along with their associated ip addresses
  5. Now that you know the Printer Name and IP Address type 'ctrl r' to edit the device socket/ip address
  6. Type : to save the config file 
  7. Restart the service by typing in 'service cups restart'
  8. Type 'restart cups.service
  9. verify the ip address has been updated via 'lpstat -t'

Login to the linux server as root

Edit the /etc/cups/printers.conf file

  • search the printers.conf file for the current IP of the linux printer
  • change the current IP to the new IP of the linux printer
  • restart the cups service on the linux server with the following command:
    • service cups restart

You can see what the linux printer IP is by typing the following command: