Hi,
One way would be to send a ARP request to the remote machine. You could
interop to the SendARP function in iphlpapi.dll.
[DllImport("iphlpapi.dll")]
public static extern int SendARP( int DestIP, int SrcIP, [Out] byte[]
pMacAddr, ref int PhyAddrLen );
IPAddress addr = IPAddress.Parse("192.168.0.1");
byte[] mac = new byte[6];
int len = mac.Length;
SendARP( (int)addr.Address, 0, mac, ref len );
string macAddress = BitConverter.ToString( mac, 0, len );
The Address propery of IPAddress is marked as obsolete, so you will get a
warning.
Hope this helps

Signature
Chris Taylor
http://dotnetjunkies.com/WebLog/chris.taylor/
> Hi,
>
[quoted text clipped - 4 lines]
> regards
> -Kumarforg