title: Finding MAC address from IP address
body: <p>I'm working on a module which has a client-server architecture. And I have to authenticate the connecting peer machine on the basis of the <a href="http://en.wikipedia.org/wiki/MAC_address" rel="nofollow noreferrer">MAC address</a>.</p>
  
  <p>At the time of installation I store an encrypted list of valid MAC addresses.</p>
  
  <p><b>Please note that I have no control on this peer machine and some third-party application will be running on this and I can not install any application on this peer machine.</b></p>
  
  <p>At run time when a socket connection happens I need to know the MAC address for the IP address used in the connection, so that I can validate it against the previously stored MAC address.</p>
  
  <p>Are there any C/C++ APIs available which can help me to get the MAC address from the IP address. This machine is usually to be connected in a LAN, but it can be on different subnets.</p>
  
  <p>My module is multiplatform and runs on Windows, Solaris and Linux and similarly the peer machine can be running on any OS.</p>