Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
Need to get IP Address
john sal
Ranch Hand
Joined: Jul 30, 2010
Posts: 92
posted
Feb 09, 2011 04:18:10
0
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.
I am able to get the names of all the attached printer but not able to get the IP.
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()); }
Can someone let me know how can i get the IP of the printer?
I agree. Here's the link:
http://zeroturnaround.com/jrebel/download
subject: Need to get IP Address
Similar Threads
Print raw bytes to thermal printer
Get the list of printers configured on the Server machine via a JSP page
Printing a PDF document using Java 1.4 Printing API
can' t lookup printService by system call
Using printer to print string object
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter