title: Get MAC address of remote PC?
body: <p>I need to get the MAC address from a PC. The code I've written so far is here (this is only a small part of the code).</p>
  
  <pre><code>public byte[] getMac(L2PcInstance player)
  {
      try
      {
          NetworkInterface ni = NetworkInterface.getByInetAddress(player.getClient().getConnectionAddress());
          if (ni != null)
          {
              byte[] mac = ni.getHardwareAddress();
              if (mac != null)
              {
                  return mac;
              }
          }
      }
      catch (SocketException e)
      {
          _log.log(Level.SEVERE, "No MAC address.", e);
      }
      return null;
  }
  </code></pre>
  
  <p>This code finds the MAC of the PC I run it on, but I need to get the remote MAC.</p>