I am trying to set up an Android SSH client to connect to another machine on my local network. I can connect if I use the IP address, but the IP address can change. How can I determine the hostname that my Android device assigns to the other machine, so that I can connect using that instead?
(Right now the specifics happen to be using JuiceSSH to connect to an Ubuntu 13.10 laptop running sshd and mosh-server, but I'd like to learn a general approach that is not client or target specific. Ideally, a system-level Android command.)