title: API for configuring static IP addresses in an Android application
body: <p>Is it possible to set the IP address of an interface in Android within an application?</p>
  
  <p>I can query the available interfaces and their current addresses using <code>java.net.NetworkInterface</code>, but this doesn't provide a facility to change these. Did I just miss something somewhere, or is it not allowed?</p>
  
  <p>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 <a href="http://en.wikipedia.org/wiki/IPv4" rel="nofollow noreferrer">IPv4</a> and <a href="http://en.wikipedia.org/wiki/IPv6" rel="nofollow noreferrer">IPv6</a> addresses.</p>