how to get machine address of client side through javascript

Posted by Rohanphavde under ASP.NET on 10/23/2013 | Points: 10 | Views : 2825 | Status : [Member] | Replies : 2
how to get machine address of client side through javascript
i have tried following code..bt it get detais of server after hosting on web server

Private Function CpuId() As String
Dim computer As String = "."
Dim wmi As Object = GetObject("winmgmts:" & _
"{impersonationLevel=impersonate}!\\" & _
computer & "\root\cimv2")
Dim processors As Object = wmi.ExecQuery("Select * from " & _
"Win32_Processor")

Dim cpu_ids As String = ""
For Each cpu As Object In processors
cpu_ids = cpu_ids & ", " & cpu.ProcessorId
Next cpu
If cpu_ids.Length > 0 Then cpu_ids = _
cpu_ids.Substring(2)

Return cpu_ids
End Function




Responses

Posted by: Bandi on: 10/23/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer
http://www.aspsnippets.com/Articles/Get-Client-Machine-IP-Address-using-JavaScript-and-JSON.aspx
http://www.daniweb.com/web-development/aspnet/threads/212462/getting-mac-address-and-client-side-encryption

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Rohanphavde, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sheonarayan on: 10/23/2013 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Refer to Vuyiswamb's response in this post - http://www.dotnetfunda.com/forums/show/7434/how-to-get-the-ip-address-of-the-client-machine-using-javascript.

It has a nice solution.

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Rohanphavde, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response