I work on the system for the house, I need to recognize that the phone (iPhone) has entered the local network (connected) and also needs to know that it has left the local network (disconnected from WiFi).

I tried things like arp or nmap , but they are not suitable, because iOS can be disconnected from the network to save battery. Arp and nmap lose their mouth if it is in a dream. However, the router always knows for sure that the device is connected or disconnected, which means that you can somehow ... The question is how?

  • the router also loses the device. And the apparent "visibility" is just dhcp lease (that is, an ip is issued for an hour or two. And that’s what you see) - KoVadim
  • All the “giblets” of the ieee 802.11 protocol family are “ secured ” either in hardware or in a blob loaded into the device. for some devices they can “stick out”, but, probably, the overwhelming majority are not. because it is better to focus on what lies on top. in your case, a hook at a dhcp server will work in conjunction with a relatively small lease time (of the order of, for example, several tens of minutes). - aleksandr barakin
  • @KoVadim, yes, I assigned the static dhcp binding to the devices I need (monitored). It remains to somehow find out that these devices are online. I decided every 15 minutes to send a ping to them with -r10 , or even -r20 , trying to "uncover" them. Everything seemed to work, but bad luck ... 10 minutes ago I lost the device again ... - Jacob Ling
  • if the device does not want to answer you, then you just will not find it. - KoVadim

1 answer 1

Iphone has the ability to connect to a WiFi network, it has its mac-address. You can monitor the location of the phone by analyzing airodump-ng network devices.