This app runs a server on port 5001. The app will scan the subnet it's on for devices listening on 5001 and makes a request, and the app responds with the hostname for the app to use.
A line can be added to /etc/rc.local along with the other scripts