Assuming you are on the same LAN, there are several ways of doing this. Here is one:
Ping your broadcast address.
Check out the new entry in your arp table.
To find out your broadcast address:
Open a shell, and su to root. Type:
replace "eth0" by whatever suit your system or just don't put it and it will display all your NIC's info
Then look for sth like this ==> Bcast:192.168.1.255 <== this is my broadcast address.
Now ping it:
Code:
ping -b 192.168.1.255
Let it go for a couple of sec and then hit ctrl+c
Now type:
That'll show you the hostname (1st column) the IP address (2nd one) the Mac address (3rd one) of all the machine in your LAN that answered the broadcast.
Note that if one box as a firewall loaded, this wont work (the firewall will block the ping)