• Post Reply Bookmark Topic Watch Topic
  • New Topic

How get info about computer my app is running on?  RSS feed

 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making an application that will have a license for running on only one computer at a time. I will have a license file that will hold info about the app, its version, etc. But I also want to put info about the computer that it's being installed on (none of that info will be sent to me, just saved in the license - enrypted - so the license can't be used on a diff computer). I do NOT want the OS name and version (they can change that) but the actual computer info.
I know some C/C++ programs can do this, but is there any way to get this info from java? Does anyone have any sample code or even just suggestions of places to look for this information? It'd be greatly appreciated!
Thanks in advance!
 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know how this might be done? Either JNI or otherwise? Can anyone tell me if there's anything I can use other than a MAC address?
 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All I've heard everyone talk about is a MAC address. But I know this can be changed. Is there nothing that you can get with C that is tied more to the bios or hardware? (I may be making little sense here because I am not too knowledgeable when it comes to hardware and what's really "under" the OS).
Is there really nothing to correctly identify a computer irrespective of the OS that is on it? In other words, some way (through software) to get an ID# or something of the computer (or hard drive) itself that will remain the same even if the OS/OS-version is changed? Again, I may be talking about nothing as I am not knowledgeable in this area, but I thought I'd read somewhere that computer makers have put some data in the hardware that is accesible through software. (And of course I'm guessing that Java can deal with this only in JNI)
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In other words, some way (through software) to get an ID# or something of the computer (or hard drive) itself that will remain the same even if the OS/OS-version is changed?

If the target OS is Windows, you can make an API call to get the serial number of the user hard drive. I am not sure if this API exists for non-Windows systems, though.
Eugene.
 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eugene,
Thanks! Do you know what that API call in windows is?
I'll look for it on other OS-es and when I find out I'll post them here. Hopefully, I can collect enough to help anyone else facing Java deployment and licensing issues.
Robert
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!