wood burning stoves 2.0*
The moose likes Java in General and the fly likes Capture computer name 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 "Capture computer name" Watch "Capture computer name" New topic
Author

Capture computer name

Hui Ge
Greenhorn

Joined: Mar 11, 2005
Posts: 25
Hi,
Let's say i want to develop a web app that authenticates user via their computer name. Is there anything in the APi that can get the user to send their computer name over to the server to be captured?

Thanks in advance.
Stuart Gray
Ranch Hand

Joined: Apr 21, 2005
Posts: 410
Use the java.net.InetAddress class. The getLocalHost() method will return an InetAddress reference, on which you call the getHostName() method:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Capture computer name
 
Similar Threads
why not increase RAM?
Login on lan Network?
Computer/User name
File Uploading Problem !!
Get Ip Range