Last post Jul 14, 2008 11:28 AM by Talib_dotnet
Jul 14, 2008 08:23 AM|priyankpatani|LINK
Hi I m quite new to Web Programming
I want to get Client Computers Details like IP , MAC Address in ASP
I also want to read certain file located on Hard Drive.
ASP being Server Side Programming language cannot Give me Clients Details.
So When I run the Code
Dim IPHEntry As IPHostEntry
Dim IPAdd() As IPAddress
Dim i As Integer
IPHEntry = System.Net.Dns.GetHostByName(Dns.GetHostName())
IPAdd = IPHEntry.AddressList
txtComputerName.Text = Dns.GetHostName()
txtIPAddress.Text = IPAdd(i).ToString
Dim theNetworkInterfaces() As System.Net.NetworkInformation.NetworkInterface = System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()
For Each currentInterface As System.Net.NetworkInformation.NetworkInterface In theNetworkInterfaces
If currentInterface.OperationalStatus = Net.NetworkInformation.OperationalStatus.Up And currentInterface.NetworkInterfaceType.ToString() = "Ethernet" Then
txtMACAddress.Text = currentInterface.GetPhysicalAddress.ToString
gives me Server's Details
I need same code to be executed on client Computer to get details about client computer
Please help me
Thanks in Advance.
Jul 14, 2008 08:43 AM|Punithkumar|LINK
A list of server variables can be found here:
bit1 is set to 1 if the cCertification authority of the client certificate is invalid (it is not in the list of recognized CAs on the server).
Note The server interprets any underscore (_) characters in
If the page is redirected,
Source of abouve given table is
Jul 14, 2008 09:20 AM|ROAMER|LINK
look at the following thread.
Jul 14, 2008 10:09 AM|priyankpatani|LINK
thanks Punit but this is not exactly what i need!
I Will not get all values from server variable as there will be a router in between
I believe ActiveX will be solution but i m not sure how to approach that
i specifically have exact code to be executed on client, i just want to know how can that be achieved.
Jul 14, 2008 10:59 AM|chidge|LINK
ASP cannot interegate the client except for the server variables that were descibed earlier. This is due to security features built in to the client browsers for obvious reasons. The only way around this is an activeX component, which the user would have
to agree to install. It is not something that can be talked through on a forum, it could get in depth, start with this and go from there http://support.microsoft.com/kb/317392 .
Jul 14, 2008 11:24 AM|itsumapathyk|LINK
Jul 14, 2008 11:28 AM|Talib_dotnet|LINK
Check this out..
Hope this helps...