Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes Need to get IP Address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need to get IP Address" Watch "Need to get IP Address" New topic

Need to get IP Address

john sal
Ranch Hand

Joined: Jul 30, 2010
Posts: 92
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.

Can someone let me know how can i get the IP of the printer?
Don't get me started about those stupid light bulbs.
subject: Need to get IP Address
Similar Threads
Using printer to print string object
can' t lookup printService by system call
Get the list of printers configured on the Server machine via a JSP page
Print raw bytes to thermal printer
Printing a PDF document using Java 1.4 Printing API