🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #20320

Re: ����linux����λ�ñ������ʵip��

#20320
From: wakoo
Date: Fri, 19 Dec 2003 03:47
20 lines
1546 bytes
�����ˣ���л��л :)

�� �� hoopdream.bbs@bbs.nankai.edu.cn (tHeCuRe) �Ĵ������ᵽ: ��
:    /**
:      * Find and list all network interfaces and IP addresses bound to host m
: achine
:    */
:     private void listHostIpAddress() {
:         try {
:             log.info("Finding network interfaces and IP addresses bound to e
:                       ach network interface .....");
:             Enumeration nifs= NetworkInterface.getNetworkInterfaces();
: >>  .................<����ʡ��>............


--
A census taker once tried to test me.
I ate his liver with some fava beans and a nice Chianti.

�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: wakoo]
Technical Details
Message-ID: <49hPJO$9uQ@Freecity.dhs.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!news.primus.ca!news.primus.ca!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB
X-Google-Thread: f6cb0,3421fec8538d5c4a
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-22 03:06:09 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!news.primus.ca!news.primus.ca!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity
From: wakoo.bbs@Freecity.dhs.org (wakoo)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ����linux����λ�ñ������ʵip��
Date: 19 Dec 2003 03:47:11 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <49hPJO$9uQ@Freecity.dhs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1071805608.A
Lines: 20