Warm tip: This article is reproduced from serverfault.com, please click

Can I get the routing table entry in Android?

发布于 2011-08-04 11:54:41

Is there any method for getting the routing table entry in Android?

Please share the information..

Questioner
prg
Viewed
0
2017-05-23 20:24:44

It is possible to get it through the ADB. You can get the routing table with

$ cat /proc/net/route

You can also execute these commands from within your program. I found this post that discusses this option. There is no answer however. If you could elaborate on what exactly you want in the end I can edit my answer to try and help out more.

Possibly complicated but maybe useful link :)