🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1678

Way to get Local Host Addres of Linux Box ?

#1678
From: Patrick Jee
Date: Thu, 01 Nov 2001 07:58
13 lines
1223 bytes
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: <3be100f0_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!lsanca1-snf1!news.gtei.net!enterprise!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,7cfa8a846ae9b463,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-11-01 00:04:46 PST
Reply-To: "Patrick Jee" <patrickjee@lycos.co.kr>
From: "Patrick Jee" <patrickjee@lycos.co.kr>
Newsgroups: borland.public.jbuilder.java.api
Subject: Way to get Local Host Addres of Linux Box ?
Date: Thu, 1 Nov 2001 16:58:00 +0900
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
NNTP-Posting-Host: 129.254.122.67
Message-ID: <3be100f0_2@dnews>
X-Trace: dnews 1004601584 129.254.122.67 (31 Oct 2001 23:59:44 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!lsanca1-snf1!news.gtei.net!enterprise!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews