Guess that depends on how your LAN is set-up,
really ... :)
should work ...
If you don't have a central point of defining
names you'd have to rely on things like
rsh and cat /etc/hostname, looping through
the ping-able IP address range :}