I created a batch file that checks if an ip address is online (on the same network). I use the ping command. The program works great, but unfortunately, they ip addresses of the devices change to much, so I have to re-look up the IP address, and restart the program. I am looking for an easy replacement for the IP address, as this is no longer working. i would also need to know the method of detecting whether or not it is online, assuming I can't keep using ping with errorlevel, or tracert with errorlevel. I just need to make sure that the address doesn't change.
Edit: I think I will use the mac address, as that doesn't change, only, I need a way to detect if the mac address is online, but not using the arp -a command, as that displays a list of the mac address, but doesn't allow you to single one out. I hope this makes some since.