• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

how to get client computer name when he/she visit my web application?  RSS feed

 
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to get the computer name or username im able to get username locally by System.getProperty("username");
i had tried many
1.System.getProperty("username");
2.request.remotehost();
3.InetAdress
but im getting null when i deploy my application to cloud server like digital ocean.
please help
 
Sheriff
Posts: 23640
48
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's impossible for you to get my computer name when I visit your web application. Good thing too.

However... what do you plan to do with my computer name? Perhaps there's some other information you can use which doesn't violate my security?
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its just to know the user information
 
Saloon Keeper
Posts: 4691
117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you'll have to have the users log in.
 
Saloon Keeper
Posts: 9134
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even then, you can't just pass along the computer name unless the browser's security settings are very low.

For what reason is the user's computer name interesting to your application?
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on the security set on client side computer and certificates working on.

If you want to get computer name than using login facility you can get that simply.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!