1

If you are familiar with the command prompt in windows, there is an command that can used to see the ARP (Address Resolution Protocol) Cache in the command prompt i.e. arp -a. It is supposedly a table where static/dynamic MAC-to-IP address associations are stored.

In android 5.1 is there a similar ARP cache also? If there is, how can I view the current list of Mac-IP address associations lets say using a Samsung Galaxy phone for example?

  • I can't test this now, but the file /proc/net/arp should contain the information you look for. You can read it with any proper file manager or Terminal Emulator (use cat for reading the file). You don't need root to read that one file. – GiantTree Apr 19 '17 at 6:03
  • I can't find /proc/net/arp in my phone. How do I access it? – Gin99 Apr 22 '17 at 10:02
  • 1
    Another possibility is the command ip neighbor. It lists all IPs and MAC addresses in the neighborhood. – GiantTree Apr 26 '17 at 16:47
  • How do I run "ip neighbor" command using Java code on Android App? – aadi53 Feb 6 '18 at 21:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.