Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2018-03-24 00:38 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (297 votes). Check out past polls.