Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Joop Stringer
56
Views
5
Comments
How to retrieve Windows PC name of user
Question
Hi All,
Is it in anyway possible to find the local windows computer name of the user accessing the website ?
We want to use it as a way to identifiy on which machine (PC) someone is working.
I';ve seen functions like this
https://msdn.microsoft.com/en-us/library/ms724295(VS.85).aspx
and this
https://stackoverflow.com/questions/2459492/get-computer-name-in-c-sharp-without-referencing-microsoft-visualbasic-dll
but don't know how to use it ...
Joop
João Rosado
Staff
Hi Joop,
Both those you mention would give the name of your Server Machine, not the user.
Think the best you could try is something like
https://msdn.microsoft.com/en-us/library/system.web.httprequest.userhostname%28v=vs.90%29.aspx
or
https://msdn.microsoft.com/en-us/library/system.web.httprequest.userhostaddress%28v=vs.90%29.aspx
inside an extension. Those will probably not work at all if there are non-transparent proxies in the middle.
Also carefull with all the javascript based solutions you see around the web ...getting that information is not allowed by js security policies.
Regards,
João Rosado
Gonçalo Martins
Staff
Hi Joop,
I think you can access that kind of information using a small Silverlight application to query it in the client side.
One of the API's that you can explore is System.Net.Dns..
Hope it helps..
If you have any news, share it with us..
Best Regards,
Gonçalo Martins
Joop Stringer
@João
I don't need the IPAddress or the HostName ...
I want to have the PC (Device) name the user is working on ...
@Gonçalo
I don't want to install a SilverLight app
Would be nice to have an extension
Joop Stringer
Forget this, it will never work ...
I've been looking around and all I can find is an ActiveX solution. And we don't want to stuck to IE as default browser.
So no options....
We'll have to reconsider the options and the possible solution !!
Thanks guys !
Remco Dekkinga
MVP
Joop Stringer wrote
:
Forget this, it will never work ...
I've been looking around and all I can find is an ActiveX solution. And we don't want to stuck to IE as default browser.
So no options....
We'll have to reconsider the options and the possible solution !!
Thanks guys !
I would say that you should look into using an extension that uses WMI (but it will only work for Ms Windows).
This is a powerfull set of functions that you can use to query all kinds of data from the client PC.
Edit: adding a link would be useful
https://msdn.microsoft.com/en-us/library/windows/desktop/aa394582%28v=vs.85%29.aspx
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...