https://www.hardill.me.uk/wordpress/2017/01/23/raspberry-pi-zero-gadgets/ has great docs for this that don't require bonjour/zeroconf!