0

Possible Duplicate:
How can I get the MAC and the IP address of a connected client in PHP?

How can i get mac id of a machine using PHP? I want to find the IP and MAC ID for identifying the very unique user.I am talking about websites, not a LAN. I have a website for example www.test.com, and i want to know who all are seeing or login to my site, by getting there machine's MAC id and IP

Thanks in advance

Community
  • 1
  • 1
arun
  • 3,667
  • 3
  • 29
  • 54

2 Answers2

3

You can't. MAC addresses are Ethernet things, not Internet things. The machine might not even have any interfaces that use MAC addresses.

David Schwartz
  • 179,497
  • 17
  • 214
  • 278
1

Due to the nature of HTTP, PHP can only get whatever information the browser chooses to send in its request. By default, no browser will ever send a MAC address to your server. The only way to get it would be with some sort of a client-side script, but I would expect that's beyond the capabilities of browser scripting.

Rick
  • 1,268
  • 9
  • 8
  • can we use client script(javascript) to get the mac id and then can we send it to server script? – arun Apr 19 '12 at 07:28
  • No, because there is no such thing as "the MAC id". MAC addresses are Ethernet things. The machine might not even have any Ethernet interfaces at all. – David Schwartz Apr 19 '12 at 08:10