jamesmustain New Member Feb 27, 2021 #1 Hi all, I need to put the static ip address on the device (via code). I get a db with a table with the ip address, using a query I would take the value and assign it to the device. So Is it possible to change the "configuration mode" from DHCP to static and enter the IP? Any help? Thanks!
Hi all, I need to put the static ip address on the device (via code). I get a db with a table with the ip address, using a query I would take the value and assign it to the device. So Is it possible to change the "configuration mode" from DHCP to static and enter the IP? Any help? Thanks!
hatzisn Expert Licensed User Longtime User Feb 27, 2021 #2 As far as I know the only way is to do it manually in wifi section of the settings by selecting the "more" when you have clicked on your Wifi. I have found this though in stackoverflow which defies my beliefs: How to configure a static IP address, netmask, gateway programmatically on Android 3.x or 4.x I have checked in Stack Overflow question API for configuring static IP addresses in an Android application. It works until Android 2.3. However, there is no luck on a higher API level. For exampl... stackoverflow.com Upvote 0
As far as I know the only way is to do it manually in wifi section of the settings by selecting the "more" when you have clicked on your Wifi. I have found this though in stackoverflow which defies my beliefs: How to configure a static IP address, netmask, gateway programmatically on Android 3.x or 4.x I have checked in Stack Overflow question API for configuring static IP addresses in an Android application. It works until Android 2.3. However, there is no luck on a higher API level. For exampl... stackoverflow.com