Answer the question
In order to leave comments, you need to log in
Is it possible to use flask to find out the MAC address of the client on the local network that requested the page?
Is it possible to use flask to find out the MAC address of the client on the local network that requested the page?
Answer the question
In order to leave comments, you need to log in
yes you can. if there is access to the router to which the client is connected,
pull out the ip address request.remote_ip from the request
and then query the router for ip_to_mac with a separate request or worker
if the client is on the same network as the server, then it’s possible (I don’t know what flask is)
if the client and server are on different networks - no (but it can only if the browser itself says, but why would it suddenly? and the mac from a foreign network is useless ).
To mine, you do not understand what exactly the flask serves. And also the client will never send you his poppy address.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question