Android tethering: fix IP address of client using Mac ID?

Hi there Just playing around with Android tethering / wifi hotspot on my phone. One question that I have is, how do I fix the IP address that my phone assigns to a client when acting as an access point? Is there an App that I can use to tie a client's Mac ID to certain IP address, like you can usually do with "regular" wireless access points? Thanks. Cheers, Peter -- Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ http://www.cms.waikato.ac.nz/~fracpete/ Ph. +64 (7) 858-5174

On Tue, 3 Feb 2015 22:57:30 +1300, Peter Reutemann wrote:
Just playing around with Android tethering / wifi hotspot on my phone. One question that I have is, how do I fix the IP address that my phone assigns to a client when acting as an access point? Is there an App that I can use to tie a client's Mac ID to certain IP address, like you can usually do with "regular" wireless access points?
Looking at wi-fi hotspots, I saw a few apps on the Play Store, but at a quick glance none of them mentioned giving this level of control. Looks like there is no actual public API in Android for controlling hotspot functions. Some hackers have figured out how to access some things via Java introspection <http://stackoverflow.com/questions/6394599/android-turn-on-off-wifi-hotspot-programmatically>, <http://stackoverflow.com/questions/7048922/android-2-3-wifi-hotspot-api>, <https://github.com/nickrussler/Android-Wifi-Hotspot-Manager-Class>, but of course this kind of thing is prone to breakage with Android version updates.

Just playing around with Android tethering / wifi hotspot on my phone. One question that I have is, how do I fix the IP address that my phone assigns to a client when acting as an access point? Is there an App that I can use to tie a client's Mac ID to certain IP address, like you can usually do with "regular" wireless access points?
Looking at wi-fi hotspots, I saw a few apps on the Play Store, but at a quick glance none of them mentioned giving this level of control.
Yes, that was my impression as well.
Looks like there is no actual public API in Android for controlling hotspot functions. Some hackers have figured out how to access some things via Java introspection <http://stackoverflow.com/questions/6394599/android-turn-on-off-wifi-hotspot-programmatically>, <http://stackoverflow.com/questions/7048922/android-2-3-wifi-hotspot-api>, <https://github.com/nickrussler/Android-Wifi-Hotspot-Manager-Class>, but of course this kind of thing is prone to breakage with Android version updates.
Thanks for the links, I'll have a look at them and see whether I can utilize them. Cheers, Peter -- Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ http://www.cms.waikato.ac.nz/~fracpete/ Ph. +64 (7) 858-5174
participants (2)
-
Lawrence D'Oliveiro
-
Peter Reutemann