How do you set a static IP address for hosts that connect to a raspberry pi based wifi hot spot?

I'm looking to set static IP addresses for any device that connects to the pi via the wifi hotspot I created using hostapd and dnsmasq. How do you to this? Right now, it seems the IP may change after 24 hours of being disconnected - what's the correct way to ensure that any time a device connects to the pi using wlan0, it keeps that IP indefinitely?

6 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like