networking - How to set IP Address of a Non-WiFi Enabled Android Device Programmatically? Android 5.x -


i've looked on , tried own solutions no effect.

basically, connecting device via ethernet cable (it's kind of hacky, don't worry, know!). device cannot utilize wifi, bluetooth, etc. must via ethernet.

i able communicate device via ethernet, need change ip address so.

however, able find solutions wifi, not work. i'm hoping solution deals more setting ip address usage network.

does have suggestion?

note: searching solution programmatically/via code.

edit: clarification, this attempt wifi. there no wifi manager wifi disabled android device (out of necessity). reflection is, of course, brittle seems unavoidable.

i began attempting utilizing connectivitymanager , networkinterface, can't seem piece quite how "setting ip stage". due not being able quite find allow set ip address beyond wificonfiguration (which, mentioned, cannot used here).


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -