🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #18075

Re: host

#18075
From: Roberto
Date: Fri, 29 Sep 2000 00:00
6 lines
891 bytes
Usa la clase StringTokenizer

String name = InetAddress.getLocalHost().toString();
StringTokenizer tmp = new StringTokenizer(name, "/");
String nombreIP = tmp.nextToken();
String dirIP = tmp.nextToken();
Technical Details
Message-ID: <JG0B5.38444$LH4.274471@telenews.teleline.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn8t7lm6.44e.news@iron.KAOS.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1116f3,ddbc4c57421bb9c3
X-Google-Attributes: gid1116f3,public
From: "Roberto" <rcasasNO@SPAMable.es>
Subject: Re: host
Date: 2000/09/29
Message-ID: <JG0B5.38444$LH4.274471@telenews.teleline.es>
X-Deja-AN: 675514803
References: <slrn8t7lm6.44e.news@iron.KAOS.org>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Complaints-To: usenet@teleline.es
X-Trace: telenews.teleline.es 970233641 212.97.165.10 (Fri, 29 Sep 2000 15:20:41 MET DST)
Organization: Clientes_Teleline
X-MSMail-Priority: Normal
NNTP-Posting-Date: Fri, 29 Sep 2000 15:20:41 MET DST
Newsgroups: es.comp.lenguajes.java