I have a shell script which uses etherwake to wake up a machine on my local network. After the machine is awake, I\'m not sure of the IP address.
While trying to answer
I know is old, but the simplest way in linux is:
arp -a | grep "00:1E:C9:56:3C:8E"
The point of this is to ignore if is connected in one or another network meanwhile each device can see each other.