Solved

ASP.net VB.net Getting unique information about a computer

Posted on 2014-01-19
4
736 Views
Last Modified: 2014-01-19
Hi. The following code seems to find just the name of the PC from an ASP.net site
 How do I find other information that is unique to that PC?


Dim way1 As String = System.Environment.MachineName
            Dim way2 As String = Server.MachineName
            Dim way3 As String = System.Net.Dns.GetHostName
            Dim way4 As String = My.Computer.Name
            Dim way5 As String = System.Net.Dns.GetHostEntry(Request.ServerVariables
0
Comment
Question by:murbro
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:Ark
ID: 39791895
ASP.net controls server-side, not client side machine. Though you can get remote_addr, but for IPv6 it may be useless. You can get some info via ActiveX like shell/wsh/WMI, but user can simply switch ActiveX off...
0
 

Author Comment

by:murbro
ID: 39791897
Thanks. How would I get the following ActiveX: shell/wsh/WMI
0
 
LVL 28

Accepted Solution

by:
Ark earned 500 total points
ID: 39791906
These activeX are already on user machine and you can access them via javascript (if user permit).
You can use following scenario insted:
1. Create 'ProductGenerator' WinApp for download on your site. This app will gather info from client computer (using System.Management or system.Net class for example) and convert it into some code-like (GUID, for examle) form
2. User send this info to you (via e-mail or just filling ASP.net form).
3. You home computer or ASP server contains a code which encrypt some text ('My app is cool' for ex) with above GUID (as a  crypto key)
4. You send encrypted key (password) to user after (s)hi paid for software
5. Your main app available for download have same code as #1 to get and convert system info as well as symmetric algo to decrypt password. Then check decrypted string - if it's 'My app is cool' - run full code, otherwise - run demo code
0
 

Author Closing Comment

by:murbro
ID: 39792146
Thanks very much
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question