Capture Computer Name

D

Dave

I have an internal page that I'd like to not only capture the users
name that hits it, but I'd also like to capture what machine that they
used when they logged in. I'm already logging the
ServerVariables["remote_addr"], but that's not granular enough.

Is there a way to capture the machine name when a user hits the page?
If yes...please be specific.

Thanks for your help.
 
Joined
May 16, 2006
Messages
27
Reaction score
0
Dim host As System.Net.IPHostEntry
host = System.Net.Dns.GetHostByAddress(Request.ServerVariables.Item("REMOTE_HOST"))
dim strComputerName as string = host.HostName
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,050
Members
48,769
Latest member
Clifft

Latest Threads

Top