Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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: 23509
47
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: 4479
112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you'll have to have the users log in.
 
Saloon Keeper
Posts: 8907
167
  • 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.
 
no wonder he is so sad, he hasn't seen this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!