Article View: borland.public.jbuilder.java.api
Article #1532Re: ethernet address
From: Joi Ellis [TeamB]
Date: Thu, 22 Nov 2001 15:39
Date: Thu, 22 Nov 2001 15:39
19 lines
1473 bytes
1473 bytes
Tim Chemaly <tchemaly@ing.sun.ac.za> wrote:
> Hi Joi
> No that will give me the IP or host name. I need the MAC address.
I don't know of any platform-independent way to get the MAC address.
I'd probably resort to something like:
Runtime.getRuntime().exec("/sbin/ifconfig eth0").getInputStream()
and parse the mac address from the output.
--
Joi Ellis (TeamB) http://www.teamb.com/
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html
Only posts which violate the rules in guide.html are subject to cancelation.
Technical Details
Message-ID:
<3bfd1c35_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!shale.ftech.net!news.ftech.net!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mailReferences:
<3bfb835a_1@dnews> <3bfbcd68_2@dnews> <3bfc2c44_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,c7d3b63fb95818b4
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-11-22 07:40:32 PST
Message-ID: <3bfd1c35_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: ethernet address
Newsgroups: borland.public.jbuilder.java.api
References: <3bfb835a_1@dnews> <3bfbcd68_2@dnews> <3bfc2c44_2@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 22 Nov 2001 07:39:33 -0800
X-Trace: dnews 1006443573 209.46.41.66 (22 Nov 2001 07:39:33 -0800)
Lines: 19
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!shale.ftech.net!news.ftech.net!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail