I am trying to figure out how the arduino IDE finds esp8266 on the network that have OTA capabilities. If I go to "Tools" -> "Port" I can see my esp8266 listed there (it's loaded with the esp-ota library). How does the arduino IDE find my device (what protocol)?
I tried to look in the esp8266 arduino library:
https://github.com/esp8266/Arduino
But I am unable to find any onformation on this.
The only thing I found is that it might be mDNS. But the mDNS name contains some hardware ID which is different for each device. So it cannot actually search for a device with a specific name, or can it?
Thanks!