Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-01-19
4
Medium Priority
?
742 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:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Murray Brown
ID: 39791897
Thanks. How would I get the following ActiveX: shell/wsh/WMI
0
 
LVL 28

Accepted Solution

by:
Ark earned 2000 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:Murray Brown
ID: 39792146
Thanks very much
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

688 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