File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Traceroute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Traceroute" Watch "Traceroute" New topic


Andy James
Ranch Hand

Joined: Aug 22, 2005
Posts: 90
Can I implement Traceroute in an Android application?
Piyush Patel
Ranch Hand

Joined: Feb 24, 2009
Posts: 127

trace route may require kernel level access. i think we dont have such deep level permission in android !
still but there is a hope , i found a command prompt in Android Emulator , where i can write commands like dir (list directory) etc..
you try out something ther
Monu Tripathi

Joined: Oct 12, 2008
Posts: 1369

Best and a little less time consuming way to find out feasibility of such an application would be to search for any existing application in the said domain and study it. If I remember correctly there was an application named "Server somthing" that had traceroute built in.

[List of FAQs] | [Android FAQ] | [Samuh Varta]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

I don't think that traceroute requires special kernel privileges. Traceroute works by polling a certain port on successively more distant links in the chain between source and destination machines.

You can find source code in the Linux and BSD Unix OS sources. It;s part of the network utilities apps.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Traceroute
It's not a secret anymore!