4 ms·
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 d
by gruez 6y ago
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.
- abbeyj 6y agoHow would you use ARP here? ARP lets you find a MAC address assuming that you already know the IP address that you want to talk to. But without static IPs you wouldn't know the IP address of the phone that you're interested in. I'm not seeing how ARP will help here.
- mmcallister 6y agoyou don't need to know the IP address , you can just dump the ARP cache and look for the MAC address you need. 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)
- emilburzo 6y agoConvenience, mostly. 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).