Re: How do I retrieve a unique computer ID from java
frankgerlach22_at_gmx.de
Date: 01/03/05
- Next message: frankgerlach22_at_gmx.de: "Re: How to send the email attachment"
- Previous message: frankgerlach22_at_gmx.de: "Re: Tomcat 5.5.6 : How to deploy and run JSP and Servlets"
- In reply to: Rick D.: "How do I retrieve a unique computer ID from java"
- Next in thread: Michael Borgwardt: "Re: How do I retrieve a unique computer ID from java"
- Reply: Michael Borgwardt: "Re: How do I retrieve a unique computer ID from java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 3 Jan 2005 13:38:19 -0800
Did you check the java.net package ?
Eg: stHostname=java.net.InetAddress.getLocalHost().getHostName();
gives you the hostname of the current machine. Compute a hash on the
hostname
if you need a number. Either use the hashCode() method or (more
sophisticated)
perform an MD5.
- Next message: frankgerlach22_at_gmx.de: "Re: How to send the email attachment"
- Previous message: frankgerlach22_at_gmx.de: "Re: Tomcat 5.5.6 : How to deploy and run JSP and Servlets"
- In reply to: Rick D.: "How do I retrieve a unique computer ID from java"
- Next in thread: Michael Borgwardt: "Re: How do I retrieve a unique computer ID from java"
- Reply: Michael Borgwardt: "Re: How do I retrieve a unique computer ID from java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|