------ art_7333_3787063.1189303539043 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Actually, it does work. It looks like windows lists the interface assigned with the default route of 0.0.0.0 first. Cool. Not sure about nix as I only have one interface right now. Good deal. Thanks again On 9/8/07, ara.t.howard <ara.t.howard / gmail.com> wrote: > > > On Sep 8, 2007, at 5:29 PM, X1 wrote: > > > Quick question, what does first mean? > > > > Do you look at interface metrics or weights, or just the first > > alphabetic interface? Thx > > programs like 'ifconfig' dump out mac addrs in some order - i have no > idea what that order is nor have made any effort to do so, esp on > other platforms. > > basically the 'macaddr' gem just knows how to shell out and parse the > output of the appropriate networking status command on various > platforms and scrapes the output for macaddr looking tokens. > > so > > Mac.addr # the first address seen in the output > Mac.addr.list # all mac addrs seen in the output (Array) > Mac.addr.list.first # the first one, same as Mac.addr > > so far my uses of determining mac addr have simply been to get a > unique id for things like encryption so i haven't cared *which* mac > addr i found, only that i found *an* address. > > answer your question? > > kind regards. > > a @ http://drawohara.com/ > -- > we can deny everything, except that we have the possibility of being > better. simply reflect on that. > h.h. the 14th dalai lama > > > > > ------ art_7333_3787063.1189303539043--