Hi;
How to get client login mac address? (ruby on rails)
i am sorry bad english
Hi;
How to get client login mac address? (ruby on rails)
i am sorry bad english
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
On Jan 5, 2015, at 12:18 PM, Jason Fleetwood-Boldt
[email protected] wrote:
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.
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.
–
Scott R.
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs