I would like to assign a static IP to an ethernet card, connected to the Android device via OTG cable. It should be done programmatically, but I can't find any reference regarding ethernet cards in android.
Any ideas?
Thank you
I would like to assign a static IP to an ethernet card, connected to the Android device via OTG cable. It should be done programmatically, but I can't find any reference regarding ethernet cards in android.
Any ideas?
Thank you
If its a rooted device you can try with this
And also you can use
ifconfig
instead ofnetcfg
.