Some years ago there was a question about changing the WiFi IP address in Android programmatically. As far as I know there is still no public API for doing this.
Beside this: does anyone have experience with the approach of the linked question and answer with using IPv6 address. When I try this, my whole Android 5.1 crashes. IPv4 addresses are working, though.