Forum Moderators: coopster

Message Too Old, No Replies

MAC Address Resolution

Getting a MAC address in PHP

         

Kronos

6:14 pm on Jul 24, 2003 (gmt 0)

10+ Year Member



Hello again,

I'm looking for a way to find someone's MAC address using PHP code on my web site. It's for statiscal use and I must differentiate the users. Thanks!

Gibble

6:17 pm on Jul 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Trust me, this is a PITA and will NEVER work reliably. Unless you have the user download and install a control that gets the MAC from the client side, you will never get this to work properly.

We tried doing it internally and got hung up because of different segments, so ... good luck!

vincevincevince

7:03 pm on Jul 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



2 ways:
1 - send ARP REQUEST to the IP
2 - send PING to the IP

So far as implementing these in php I can't help you - but the packet makeup is standard for both... hope it at least helps your search!

For differentiating users, use cookies and IP address?

Knowles

7:21 pm on Jul 24, 2003 (gmt 0)

10+ Year Member



Could you put it into passthru [us3.php.net]? I am not sure how you could read the response but that should send the ping at least.