• 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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: 23714
50
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: 4868
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: 9385
181
  • 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: 93
  • 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!