Get a machines MAC address on the local network from its IP in C#
I am trying write a function that takes a single IP address as a parameter and queries that machine on my local network for it's MAC address . I have seen many examples that get the local machine's own MAC address , however none (I've found) that seem to query a local network machine for it. I know such a task is achievable as this Wake on LAN scanner software scans the local IP range and returns MAC address/Hostname of all on machines. Can anyone tell me where I'd get started trying to write a function to achieve this in C#? Any help would be appreciated. Thanks EDIT: As per Marco Mp's