InetAddress.getLocalHost()

Mark Wielaard mark@klomp.org
Sun Jun 22 14:12:00 GMT 2003


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /