This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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:
 
jQuery in Action, 2nd edition
 
subject: Capture computer name
 
Similar Threads
why not increase RAM?
Login on lan Network?
Computer/User name
File Uploading Problem !!
Get Ip Range