Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Finding the Ethernet Address

by socketdave (Curate)
on May 30, 2006 at 16:18 UTC ( #552542=note: print w/replies, xml ) Need Help??

in reply to Finding the Ethernet Address

Net::Address::Ethernet seems to use a variety of methods to grab the hardware address of your ethernet card. It works on my Windows 2k laptop and on Linux. I'm guessing that the other systems you specify will work too.

Update: I thought on it a bit more and realized that this is probably the module that you looked at on CPAN. As other monks have pointed out, there isn't really a universal solution. This module can use ipconfig, ifconfig and arp to get the hardware address, which should cover a really large percentage of the operating systems (or rather OS installations) that run Perl.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://552542]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2020-10-22 01:16 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (225 votes). Check out past polls.