From: "StÃ¥le Z.H" Date: 2008-08-02T05:09:04+09:00 Subject: Re: Determining MAC address On 1 Aug, 16:03, Glen Holcomb wrote: > [Note:  parts of this message were removed to make it a legal post.] > > What would be the best (clean, cross-platform) way of determining the MAC > address of a host when you have the hostname and IP address? > > -- > "Hey brother Christian with your high and mighty errand, Your actions speak > so loud, I can't hear a word you're saying." > > -Greg Graffin (Bad Religion) You could craft an ARP packet and put it on the wire. (I've written a couple of classes that uses libnet and pcap to craft and capture ARP packets if you're interested.) Of course, this requires the target to be on the LAN. It might not be the easiest or cleanest way to do this, but it should work and it should be cross-platform, heh.