在线等!!
Java获取打印机的IP地址,谢谢了
------解决方案--------------------
应该是获取不了。不过如果打印机所在电脑名设置的是ip,你可以这样获取。
PrintService printServices[] =PrinterJob.lookupPrintServices();
for(PrintService printService:printServices){
System.out.println(printService.getName());
}
------解决方案--------------------
你可以 配置打印机的时候名称 加上ip
,然后获取判断啊。PrintService 里getName 然后判断。