B
B
B1ackGh0st2020-06-03 16:05:23
Flask
B1ackGh0st, 2020-06-03 16:05:23

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

3 answer(s)
I
iddqda, 2020-06-03
@B1ackGh0st

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

P
PeeX, 2020-06-03
@PeeX

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 ).

K
Konstantin, 2020-06-03
@Norraxx

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 question

Ask a Question

731 491 924 answers to any question