How find ruby on rails app client mac address?

Hi; How to get client login mac address? (ruby on rails)

i am sorry bad english :slight_smile:

I don’t believe the MAC address is passed in a TCP/IP request, this is used by the networking (switches & routers) layer only.

Passing MAC addresses around the internet seems like it could lead to people spoofing other people’s machines easily, so that’s probably why it isn’t done.

Generally in a web app you record the user’s browser using a cookie (which is tied to a session) and you record the user’s IP address. I’ve never heard of anyone recording a MAC address.

-Jason

You can't even get the user's machine's IP address unless the user is on a LAN with your server. You'll only get a gateway address.