Author: Hyperdude | Posted on: 11/11/2009 9:02:44 PM | Views : 365

Hi,
I have hosted my site on IIS 5.1 and I want to retrieve the computer name which is accessing my webpage.I'm currently using the following code but sometimes it returns me with a number instead of the computer's name.
Dim computer_name As String() = System.Net.Dns.GetHostEntry(Request.ServerVariables("remote_addr")).HostName.Split(New [Char]() {"."c}) Dim ecn As [String] = System.Environment.MachineName

...

Go to the complete details ...