Article View: be.comp.programming
Article #1705Re: [java] alle IP adressen opvragen
From: Passero
Date: Tue, 14 Dec 2004 14:47
Date: Tue, 14 Dec 2004 14:47
28 lines
1990 bytes
1990 bytes
"mortician" <mortician_NOSPAM_@lacerta.be> schreef in bericht
news:pan.2004.12.14.10.30.56.535165@lacerta.be...
> On Tue, 14 Dec 2004 10:12:48 +0000, Passero wrote:
>
> >
Yup nu werkt het :d
> > try
> > {
> > Enumeration en = NetworkInterface.getNetworkInterfaces();
> > while(en.hasMoreElements())
> > {
> > NetworkInterface temp = (NetworkInterface)en.nextElement();
>
>
> Enumeration en2 = temp.getInetAddresses();
> while (en2.hasMoreElements()) {
> InetAddress address = (InetAddress)en2.nextElement();
> System.out.println(address.getHostAddress());
> }
>
>
> > }
> > }
> > catch (SocketException ex) {ex.printStackTrace();}
> > catch(UnknownHostException ex){ex.printStackTrace();}
>
Technical Details
Message-ID:
<j2Dvd.126$3r4.153743@phobos.telenet-ops.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!ecngs!feeder.ecngs.de!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mailReferences:
<u2lvd.19201$Og7.929860@phobos.telenet-ops.be> <pan.2004.12.13.18.58.12.406376@lacerta.be> <A0zvd.20001$4y4.955461@phobos.telenet-ops.be> <pan.2004.12.14.10.30.56.535165@lacerta.be>Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,2cd478ce225afbb1 X-Google-Thread: 107324,2cd478ce225afbb1 X-Google-Attributes: gidfcea4,gid107324,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!ecngs!feeder.ecngs.de!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail From: "Passero" <bla@bla.be> Newsgroups: be.comp.programming,nl.comp.programmeren References: <u2lvd.19201$Og7.929860@phobos.telenet-ops.be> <pan.2004.12.13.18.58.12.406376@lacerta.be> <A0zvd.20001$4y4.955461@phobos.telenet-ops.be> <pan.2004.12.14.10.30.56.535165@lacerta.be> Subject: Re: [java] alle IP adressen opvragen Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 x-mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <j2Dvd.126$3r4.153743@phobos.telenet-ops.be> Date: Tue, 14 Dec 2004 14:47:43 GMT NNTP-Posting-Host: 84.194.212.59 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1103035663 84.194.212.59 (Tue, 14 Dec 2004 15:47:43 MET) NNTP-Posting-Date: Tue, 14 Dec 2004 15:47:43 MET Organization: Telenet Internet