0

I want to track my web app users with mac address so that I can just give access to that user to only for that device having mac address registered in my app.

How can I do this?

Mohit Jain
  • 29,414
  • 8
  • 65
  • 93
  • 2
    http://stackoverflow.com/questions/1420381/how-can-i-get-the-mac-and-the-ip-address-of-a-connected-client-in-php – Unni Babu Jun 25 '15 at 06:27
  • I have already looked over it it does not have the solution @Unni Babu – Anil Bhattarai100 Jun 25 '15 at 06:29
  • This looks like an exact duplicate of http://stackoverflow.com/questions/1420381/how-can-i-get-the-mac-and-the-ip-address-of-a-connected-client-in-php .. those answers explain this *isn't possible* except under special circumstances (both client and server are on same ethernet segment). The MAC address is a part of the Link Layer of the OSI model - it isn't preserved beyond the local network segment as packets are handed from one router to another. – trooper Jun 29 '15 at 18:38

1 Answers1

1

MAC address stands for "media access control", so it is an address for a really low level in the OSI model, a physical address. So, if you are running your web app in a server which is not in the same network of your users, it will be impossible, because only the public address (IP) is transmitted.

For further information regarding this, please search a bit over StackOverflow, like this answer.

Alternatively, and if you are in the same network, there are some other possible solutions that depend directly on your networking knowledges, such as using this PHP library or some Linux scripting (assuming that you are using Linux).

Community
  • 1
  • 1
SpongePablo
  • 840
  • 9
  • 21