🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2414

Re: class InetAdress

#2414
From: Andree Große
Date: Mon, 30 Oct 2000 16:40
14 lines
1783 bytes
Florian Burg wrote:
> 
> Hi ther,
> 
> how can I get a IP Adress in the class InetAdress. The constructor is
> private, so I  can't use it.
> I want to call the method getName() to get the domain name out of a IP
> Adress.

for example: String hostname = InetAddress.getLocalHost().getHostName();

Please look to HTML-Ref of InetAddress, there are some static methods.

HTH Andree
Technical Details
Message-ID: <39FDA460.E709B736@intershop.de>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!sienna.impulse.net!63.208.208.143.MISMATCH!feed2.onemain.com!feed1.onemain.com!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!blackbush.xlink.net!connemara.xlink.net!linux1.netconx.de!not-for-mail
References: <8tk10p$n0jq1$2@ID-32826.news.dfncis.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10568c,ade0cfcc0a5f2aa
X-Google-Attributes: gid10568c,public
X-Google-Thread: 10a146,ade0cfcc0a5f2aa
X-Google-Attributes: gid10a146,public
X-Google-Thread: 1089d0,ade0cfcc0a5f2aa
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2000-10-30 09:00:06 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!sienna.impulse.net!63.208.208.143.MISMATCH!feed2.onemain.com!feed1.onemain.com!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!blackbush.xlink.net!connemara.xlink.net!linux1.netconx.de!not-for-mail
From: Andree Große <a.grosse@intershop.de>
Newsgroups: borland.public.jbuilder.java.api,comp.lang.java.programmer,de.comp.lang.java
Subject: Re: class InetAdress
Date: Mon, 30 Oct 2000 17:40:00 +0100
Organization: INTERSHOP, creating the digital economy
Lines: 14
Message-ID: <39FDA460.E709B736@intershop.de>
References: <8tk10p$n0jq1$2@ID-32826.news.dfncis.de>
NNTP-Posting-Host: ntalf.intershop.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: linux1.netconx.de 972924039 27413 193.141.75.203 (30 Oct 2000 16:40:39 GMT)
X-Complaints-To: usenet@intershop.de
NNTP-Posting-Date: 30 Oct 2000 16:40:39 GMT
X-Mailer: Mozilla 4.61 [en] (WinNT; I)
X-Accept-Language: en