• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting serial number via server

 
Lila Fowler
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15205
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Lila Fowler
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic