title: How to Find Remote System MAC Address
body: <p>I am able to get local MAC address using the below code</p>
  
  <pre><code>package com.eiw.server;
  
  import java.net.InetAddress;
  import java.net.NetworkInterface;
  import java.net.SocketException;
  import java.net.UnknownHostException;
  
  class FindMACAddress {
      public static void main(String[] args) {
          InetAddress ip;
          try {
              ip = InetAddress.getLocalHost();
  
              System.out.println("The mac Address of this machine is :"
                      + ip.getHostAddress());
  
              NetworkInterface network = NetworkInterface.getByInetAddress(ip);
  
              byte[] mac = network.getHardwareAddress();
  
              System.out.print("The mac address is : ");
  
              StringBuilder sb = new StringBuilder();
              for (int i = 0; i &lt; mac.length; i++) {
                  sb.append(String.format("%02X%s", mac[i],
                          (i &lt; mac.length - 1) ? "-" : ""));
              }
  
              System.out.println(sb.toString());
  
          } catch (UnknownHostException e) {
              e.printStackTrace();
          } catch (SocketException e) {
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>but I Need to find the remote system Mac Address...
  Whether it is possible? I already gone through some of the posts...but not clear....</p>