Need to get ip informat
<p>I am using the PrintService class to get the details of the currently attached printer now I have a requirement to get the IP of the attached printer. </p>

<p>I am able to get the names of all the attached printer but not able to get the IP. </p>

<pre><code>PrintService[] printServices = 
     PrintServiceLookup.lookupPrintServices(null, null);  
System.out.println("Number of print services: " + printServices.length);  

for (PrintService printer : printServices)  
  //System.out.println("Printer: " + printer.getName());   
  System.out.println("Printer: " + printer.getName());   
}
</code></pre>

<p>Can someone let me know how can i get the IP of the printer?</p>
