This is a companion discussion topic for the original entry at https://blokas.io/pisound/docs/FAQs/
Can I configure the DHCP of pisound to always assign the same address to the tablet/phone that connects? This is in order to send messages back from my app to the tablet without entering the tablet’s ip address each time
Yes, add a line like this to
/usr/local/pisound/scripts/pisound-btn/dnsmasq.conf and restart the hotspot:
01:23:45:67:89:ab should be replaced with the MAC address of your tablet/phone.
cat /var/lib/misc/dnsmasq.leases to see the connected clients with their MAC addresses. The IP must be in the range [172.24.1.50; 172.24.1.150], as defined by dhcp-range in dnsmasq.conf.
See https://www.linux.com/learn/intro-to-linux/2018/2/dns-and-dhcp-dnsmasq (Set Static Addresses from DHCP section) for more info.