What is my phone's hostname/network name? This should be really easy to find, but I've done a bunch of google searching and haven't found anything that works.  On Linux, you just type hostname and it tells you, but that doesn't work on my phone.

I know I've changed the hostname in the past (was android-r at one point), but I don't remember how.  All I want to do right now is see what it is, though, so I can connect to it without knowing the dynamic LAN IP address.
There's a way to retrieve your device's hostname, but you'll have to meet one requirement, which is to have a Terminal Emulator installed on your device.

Once you have one, just open an instance of the emulator and issue the following command, followed by Enter:

getprop net.hostname


Your phone will then answer with its hostname.