Generally a PrintService will be looked up like in the below snippet

PrintService defaultPrintService = PrintServiceLookup.lookupDefaultPrintService();
DocPrintJob printerJob = defaultPrintService.createPrintJob();

But is there a way to create a new PrintService by specifying the ip address of the printer

for eg:

String myPrinter = "
Eighth Floor Ricoh Printer";

PrintService myPrntSrvc = create a service with myPrinter