Is there something similar to "on-up" but for WiFi clients (mode=station)?

I use a MikroTik to connect to the personal hotspot of a mobile phone. I’d like the MikroTik to update my DDNS entries whenever I reconnect to the hotspot (I know it might be insufficient, as the hotspot could continue running while the phone gets a new IP from the ISP).

Is this possible to do? Something similar to on-up for PPP? Or should I try to call my update script from a scheduler e.g. once an hour (potentially not being able to connect to the router for an hour)?

1 Like

Assuming it's getting a DHCP address, could you call the script from the DHCP-Client instance for the interface? That’s how I update my DDNS records for WAN.

1 Like

Great idea! Thanks!