• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Getting serial number via server

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
He does not suffer fools gladly. But this tiny ad does:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic