Community discussions

MikroTik App
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

GET MAC address of hotspot user on login?

Tue Feb 08, 2022 3:49 pm

Hello ,
I have a router with free WiFi (no ned user\pass) , mwaning all the users use the same name

is there any way to get the MAC of the connected device on login ?
I know there is this script
:log info "User $user logged in!"
:global "hotspot_user" $user; 
:log info "User $user with mac-address of $[/ip hotspot active get [find user=$"hotspot_user"] mac-address] logged in!"
but beacuse the user is the same for all devices - it doesn't work
it there a way to get the MAC ?
 
dokimastiko
just joined
Posts: 2
Joined: Fri Jul 01, 2022 5:57 pm

Re: GET MAC address of hotspot user on login?

Fri Jul 01, 2022 5:59 pm

Any solution to this?

Who is online

Users browsing this forum: anav, Batterio, iustin and 86 guests