This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: InetAddress.getLocalHost()
- From: Mark Wielaard <mark at klomp dot org>
- To: gnustuff at thisiscool dot com
- Cc: java at gcc dot gnu dot org, Erik Poupaert <erik dot poupaert at chello dot be>, aph at redhat dot com
- Date: 22 Jun 2003 16:12:22 +0200
- Subject: Re: InetAddress.getLocalHost()
- References: <KIQMITP4XVT21GA2ZULIXT42FADC3X.3ef5acdd@p733>
Hi,
On Sun, 2003-06-22 at 15:19, Mohan Embar wrote:
> Andrew> Out of interest, why do you want to know the local IP address in any
> Andrew> case?
>
> I am also interested in your answer to Andrew's question.
A lot of peer-to-peer protocols require clients to publish the address
that they can be contacted on by other peers. In that case it is nice to
know on which interface/ip address the program is actually listening.
Cheers,
Mark