🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: host

#18078
From: MIguel Mateo
Date: Fri, 29 Sep 2000 00:00
15 lines
1026 bytes
> String host = java.lang.String.valueOf(InetAddress.getLocalHost());

Que te parece:
    // para el nombre
    String host =
java.lang.String.valueOf(InetAddress.getLocalHost().getHostName());

    // para la direcci�n  como String
    String dir =
java.lang.String.valueOf(InetAddress.getLocalHost().getHostAddress());

Espero que te sea �til.

    Miguel Mateo
Technical Details
Message-ID: <8r2fgj$b2e$1@polaris.cc.upv.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
X-Google-Thread: 1116f3,ddbc4c57421bb9c3
X-Google-Attributes: gid1116f3,public
From: "MIguel Mateo" <mimateoXX@upvnet.upv.es>
Subject: Re: host
Date: 2000/09/29
Message-ID: <8r2fgj$b2e$1@polaris.cc.upv.es>
X-Deja-AN: 675580556
References: <slrn8t7lm6.44e.news@iron.KAOS.org>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Complaints-To: newsmaster@upv.es
X-Trace: polaris.cc.upv.es 970244435 11342 158.42.53.52 (29 Sep 2000 16:20:35 GMT)
Organization: U.P.V.
X-MSMail-Priority: Normal
NNTP-Posting-Date: 29 Sep 2000 16:20:35 GMT
Newsgroups: es.comp.lenguajes.java