How to get an IP address from Mac address programmatically on Android?

Achiever picture Achiever · Aug 23, 2012 · Viewed 12.9k times · Source

Programmatically, I got Mac addresses of other Wifi enabled devices from my device on the same network. Same I need to apply here. Is there any apps or any other possibilities to get an IP addresses of each wifi enabled devices on the network by using those Mac addresses on Android?

Answer

Pierre Rust picture Pierre Rust · Aug 27, 2012

If you're looking for an android app, you could try Network Discovery which work very well and can list all the devices on your local network with the corresponding IP and address.

If you're looking for code instead, well the application is available on github and does (amongst other things ) basically the same thing than explained by Yahel : it reads /proc/net/arp .

Note : I'm NOT the author of this application.