Article View: borland.public.jbuilder.java.language
Article #16896Re: Getting IP address
From: Günther Bodlak
Date: Tue, 29 Dec 1998 00:00
Date: Tue, 29 Dec 1998 00:00
27 lines
1176 bytes
1176 bytes
Hi, the following should work: java.net.InetAddress.getLocalHost(); Take a look at the help of java.net.InetAddress. Regards Guenther Jonathan Anspach schrieb in Nachricht <36893544.EB4B3152@jaycor.com>... >Is there a way for a java program to get the IP address of the computer >on which it's running without knowing the host name of the computer? I >want the real address, not the loopback. > >Jonathan Anspach >Senior Software Engineer >Jaycor >Voice: (505) 344-6583 ext. 280 >Fax: (505) 344-7022 >E-mail: janspach@jaycor.com >
Technical Details
Message-ID:
<76bhf4$q3m4@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36893544.EB4B3152@jaycor.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,aa9f06ef8545d3df X-Google-Attributes: gidf74b3,public From: "Günther Bodlak" <guenther.bodlak@gmx.net> Subject: Re: Getting IP address Date: 1998/12/29 Message-ID: <76bhf4$q3m4@forums.borland.com> X-Deja-AN: 426889616 Content-Transfer-Encoding: 7bit References: <36893544.EB4B3152@jaycor.com> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language