>Hello, > >How can one get the mac's ethernet hardware address using macperl? I've >searched the macperl mailing list archives and the pod's, but I haven't >bumped into anything yet. Any ideas? > >-- >Sincerely, >Leo Wierzbowski > If i well understand, you want to get the IP address of a mac connect via it's ethernet port to a internet/intranet network, isn't it ? About a year ago i did have the same problem and did not find any explicit answer in any pod or faq. So i did use two ways to get it, but i can't find again the piece of code (it was quite short) : -You send via LWP a request to a special cgi, which get the IP address of the mac which made the request, and the cgi reply to the client or leave the address in a document (i.e. a text document myip.html or a perl document myip.pl), - You can directly ask it with : use Sys::Hostname; $host = hostname; print $host, \n which give you the machine current IP address if i made no misstake. The choice depend of where you need to have the address right on the moment. MJM ##################################################### mailto://mjm@aix.pacwan.net Jean-Michel MEYER Journaliste - Photographe "L'objet du voyage n'est pas le but, mais le chemin." Proverbe Persan http://www.azur-press.com mailto://mjm@azur-press.com ##################################################### ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch