16
3
Is there a way to change a printer's IP address in OSX (Lion) without having to add a new printer? I did find Printer IP Remedy, but was curious if there was an 'official' method.
16
3
Is there a way to change a printer's IP address in OSX (Lion) without having to add a new printer? I did find Printer IP Remedy, but was curious if there was an 'official' method.
17
You can do this in the CUPS web interface with the following steps:
cupsctl WebInterface=yes. This enables the CUPS web interfacehttp://127.0.0.1:631/printers in your web browserOnce you're done with this, Mac OS X will directly print to the new IP address. There is no need to reboot or so. If you want to disable the CUPS web interface again, run cupsctl WebInterface=no.
Except when what you get is "Internal Server Error". What do you do then? – Wildcard – 2015-12-11T08:24:32.590
This still works on El Capitan to remove a printer - seems easier to add a new printer via the GUI with static IP address then remove the old non-working one. – RichVel – 2016-04-01T14:29:31.427
1Still works on Mojave – LapplandsCohan – 2018-11-21T22:51:35.350
2Going through the CUPS web interface is considerably safer and more future-proof than editing backend files directly. – Maxx Daymon – 2014-03-04T00:51:48.267
7
The configuration information is stored in a system file in /etc/cups/printers.conf. You could edit the file and just change the IP address, but you can easily run into permission problems and end up screaming with frustration.
Here are several options that should work; most require using the terminal command line.
Pick your text editor of choice, launch it with administrator privileges, and edit the file directly.
Example: using terminal, type: sudo vi /etc/cups/printers.conf
(sudo will launch vi with adminstrator privileges; which will require that you enter your password.)
Use sed to modify the file from the command line; here are some examples:
sudo sed -i.bak s/10\.1\.1\.21/192\.168\.1\.47/g printers.confsudo diff printers.conf printers.conf.baksudo sed -i.bak s/10\.1\.1\./192\.168\.1\./g printers.confHope that helps.
The file had a comment about not editing while cupsd was running. So I shut it down while editing and restarted after, but that still didn't work. Removing and re-adding was way faster. I might try the Cups web interface next time. – Stan Kurdziel – 2015-08-07T17:27:11.083
2/me performs a facepalm ... apple ... – akira – 2012-10-19T17:04:11.363
1See the comment below. Way safer to use the web interface. – Max Masnick – 2014-06-18T17:36:30.213
Tried Printer IP Remedy on 10.7.4 and it all it seem to do was to remove my print queue – Ian Oakes – 2012-08-19T02:15:43.060