API for configuring static IP addresses in an android application

Posted by awoodland on Stack Overflow See other posts from Stack Overflow or by awoodland
Published on 2010-05-27T15:26:24Z Indexed on 2010/05/27 15:31 UTC
Read the original article Hit count: 173

Filed under:
|
|
|
|

Is it possible to set the IP address of an interface in Android within an application? I can query the available interfaces and their current addresses using java.net.NetworkInterface, but this doesn't provide a facility to change these. Did I just miss something somewhere or is it not allowed?

I was hoping to be able to make my application either change or add an alias to one or more of the existing interfaces at runtime on an "off the shelf" device. (2.1/2.2). Ideally I'd like to do this for both IPv4 and v6 addresses.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk