Where to find IP address in file system (e.g. proc or sys) Is there a way to get the IP (v4) address of an interface in the file system of Android? I know I could use ifconfig or netcfg but I would like to use a monitoring tool which can only access files and not execute commands.
I have no Android to test it, but Linux offers:

 cat /proc/net/fib_trie


.. from https://unix.stackexchange.com/questions/365225/how-to-get-the-ipv4-address-for-an-interface-from-proc

The output can then be filtered further by grep, e.g.

 cat /proc/net/fib_trie|grep '|--' | grep -vE ' 127|\.0[^0-9.]*$|\.255[^0-9.]*$'