๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16901

Re: Getting IP address

#16901
From: Jonathan Anspach
Date: Wed, 30 Dec 1998 00:00
32 lines
1263 bytes
It was right under my nose and I didn't see it. Thanks.

Jonathan

G๏ฟฝnther Bodlak wrote:

> 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: <368A6F31.FEC401B@jaycor.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36893544.EB4B3152@jaycor.com> <76bhf4$q3m4@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,aa9f06ef8545d3df
X-Google-Attributes: gidf74b3,public
From: Jonathan Anspach <janspach@jaycor.com>
Subject: Re: Getting IP address
Date: 1998/12/30
Message-ID: <368A6F31.FEC401B@jaycor.com>
X-Deja-AN: 427184617
Content-Transfer-Encoding: 8bit
References: <36893544.EB4B3152@jaycor.com> <76bhf4$q3m4@forums.borland.com>
Content-Type: text/plain; charset=iso-8859-1
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language