Why use static ips? Wouldn't an ARP packet suffice? It doesn't require setting up static IPs, and also avoids the problem of "stealthed" ports, if android/ios decides to implement that sort of thing.
on Linux:
$ arp -n | grep "MAC_ADDRESS_HERE"
192.168.86.23 ether MAC_ADDRESS_HERE C wlp4s0
if it's in the ARP cache it's "home" (or rather was, within the last 60 seconds, or gc_stale_time)An ARP packet wouldn't work in the default Docker network configuration.
You would have to give up network isolation and use "host networking" (which doesn't work on the Mac/Windows docker version).