Article View: borland.public.jbuilder.java.api
Article #1679Re: Way to get Local Host Addres of Linux Box ?
From: John Baker
Date: Thu, 01 Nov 2001 11:02
Date: Thu, 01 Nov 2001 11:02
20 lines
1342 bytes
1342 bytes
You could open a temporary server socket and then get the IP address from that... Patrick Jee <patrickjee@lycos.co.kr> wrote in message news:3be100f0_2@dnews... > I would like to get the local host's real IP address not 127.0.0.1. > Does anybody know the solution. > > InetAddress.getLocalHost().getHostAddress() returns the 127.0.0.1 > in my linux box. > > > Please let me know.. > > Best Regards, > > > Patrick Jee > >
Technical Details
Message-ID:
<3be128f5_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3be100f0_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,7cfa8a846ae9b463 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-11-01 03:00:51 PST From: "John Baker" <jbaker@SoftComms.com> Newsgroups: borland.public.jbuilder.java.api References: <3be100f0_2@dnews> Subject: Re: Way to get Local Host Addres of Linux Box ? Date: Thu, 1 Nov 2001 11:02:22 -0000 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 217.134.212.135 Message-ID: <3be128f5_2@dnews> X-Trace: dnews 1004611829 217.134.212.135 (1 Nov 2001 02:50:29 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews