find printer IP address in JAVA
matFeb 19 2011 — edited Feb 23 2011We have a java swing app that uses javax.print APIs. For business related reasons we have to use the regular names of the Printers on user's desktop, instead of DNS names of the printer. This will enable us to select only printers that meet certain criteria, that could not be done programmaticaly. Since I am using the regular name of the printer, I am not able use the InetAddress APIs isReachable method. I use the isReachable method to test whether the printer is online before the printing is done.
Any help appreciated.
I tried with the is-accepting jobs attribute, but that does not correctly represent the printer status, in my opinion. For example if the printer goes offline , it takes some time to reflect on the user's desktop.