Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Finding the Ethernet Address

by socketdave (Curate)
on May 30, 2006 at 16:18 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-24 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found