| Author |
Getting serial number via server
|
Lila Fowler
Ranch Hand
Joined: Jul 31, 2009
Posts: 84
|
|
Hi all,
Im trying to get the hard drive serial number off users pc that are running the program via a server, I am getting the correct serial number when i run the program off individual pc's but as soon as it is run the program through the server it only returns the servers hard drive serial.
Any idea's on how to get the users serial number while they are running the program through the server?
Here is my current code:
Thanks
|
Courage is not the absence of fear but rather the judgment that something is more important then fear. ~ Ambrose Redmond
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12929
|
|
What do you mean exactly by "running the program through the server"; is it a web application, where the user uses it via his or her web browser? If so, then is it a Java applet running in the browser, or an HTML / JavaScript web app? Or is it something different, a Java desktop application that talks to a server?
If it's a web application, this kind of thing is (almost) impossible, since web apps running in a user's browser have lots of security restrictions, and cannot access the user's local file system and hardware directly.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
Lila Fowler
Ranch Hand
Joined: Jul 31, 2009
Posts: 84
|
|
A jar put on the server and the clients run the program through the server on the browser as an applet, the applet calls the main class --> so everything is written in normal java - not servlets/jsp.
Any ideas thanks?
|
 |
Lila Fowler
Ranch Hand
Joined: Jul 31, 2009
Posts: 84
|
|
|
Thanks guys, it was a really stupid mistake i made, i called it from the server side instead of the client side, the method works perfectly. Sorry & thanks.
|
 |
 |
|
|
subject: Getting serial number via server
|
|
|