cups
cups copied to clipboard
network printer
how do I get or set network printer ip address and port by program or code?
For Apple's CUPS see on https://www.cups.org/documentation.html in particular things like https://www.cups.org/doc/admin.html and https://www.cups.org/doc/network.html
When you use a current CUPS version on Linux the right place at GitHub is meanwhile https://github.com/OpenPrinting there in particular https://github.com/OpenPrinting/cups and there follow the link to https://openprinting.github.io/cups/ and then in particular things like https://openprinting.github.io/cups/doc/admin.html and https://openprinting.github.io/cups/doc/network.html