tags:

views:

736

answers:

3

Hi,

I want to get machine id of client computer. Client will log in to my application with his/her login ID.

Now I want to keep track of which userID(login id) is used with which MAC address.

+1  A: 

Here is an article about getting MAC ID using vb.net.

Shoban
This answer is technically correct, but this code must be run on the client. Essentially, you cannot find a mac address of a client without special help from an agent on the client. (Unless the client and server are on the same physical network)
Jesse Weigert
:-) ok. then Stimms answer looks much more useful in this scenario,
Shoban
+1  A: 

Tricky. If your clients are connecting directly to the site and not going though any sort of NAT or proxy then you could do a lookup on it here is a pretty good article on getting the mac address.

You might consider using cookies to keep track of the users rather than recording the mac address since there are some situations where you won't be able to get an accurate mac address.

stimms
A: 

If you're just trying to keep track of a user revisits your site, you should be using cookies rather than the MAC address.

Getting the MAC address from a server is not possible unless you either install an agent on the client such as an ActiveX control or other browser plugin, or you are on the same physical network, in which case you can do a call to translate their IP address with their mac address.

Jesse Weigert
is it possible through javascript?
Vikas