• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting Terminal PC Names  RSS feed

 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am making a local intranet web project that makes use of servlets and jsp. I just would like to know if its possible to retrieve the domain pc names of every user that logs into my system using web application. I could have done it if its client side programming using Swing but I wanted to try it out using servlets and jsp.

I have run through the request object of the servlet and found request.getRemoteUser(). But as I have read, this returns the loginID of the user that browse the system.

Could someone tell me if its possible to retrieve the Computer name of every users that logs into my system. Thanks all.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. This is not information that is sent to the server. The methods on the request instance and any information sent in the request headers is all that you get.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is a local intranet application and you want the machine name, you should be able to use getRemoteHost or similar, and if this fails you may be able to get their IP and look up the machine name.

If you want the name of the person logged in to that machine, that is harder and may require purchasing something that manages NTLM, and I think it only works in Windows(tm) domains.
 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sir,

Thanks for the information. I could use getRemoteHost of the request object. It returns the IP address of the terminal logging in.

I only have some minor problem because IP address is dynamically assigned in the network but I guess I will just have to make a utility class that access the network and query the terminal name given the IP address.

Thanks again..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!