Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

find printer IP address in JAVA

matFeb 19 2011 — edited Feb 23 2011
We 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.
This post has been answered by YoungWinston on Feb 22 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2011
Added on Feb 19 2011
22 comments
1,855 views