From owner-freebsd-java@FreeBSD.ORG Wed Apr 7 09:49:21 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAD2816A4CF for ; Wed, 7 Apr 2004 09:49:21 -0700 (PDT) Received: from electricrain.com (electricrain.com [64.71.143.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E19143D5E for ; Wed, 7 Apr 2004 09:49:21 -0700 (PDT) (envelope-from fuzzy@electricrain.com) Received: (qmail 17544 invoked by uid 540); 7 Apr 2004 16:48:41 -0000 Date: Wed, 7 Apr 2004 09:48:41 -0700 From: Chris Doherty To: java@freebsd.org Message-ID: <20040407164841.GS18887@zot.electricrain.com> References: <49533.134.84.153.235.1081353399.squirrel@www2.neuroflux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49533.134.84.153.235.1081353399.squirrel@www2.neuroflux.com> User-Agent: Mutt/1.4i X-Operating-System: XEmacs X-Koan: mu. X-Message-Flag: This message contains absolutely no malicious code. Organization: The Inside Foundation Subject: Re: getLocalHost() Always Returns Loopback? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: chris-freebsd@randomcamel.net List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2004 16:49:22 -0000 On Wed, Apr 07, 2004 at 09:56:39AM -0600, Ryan Sommers said: > I'm having a lot of difficulty getting InetAddress.getLocalHost() to > return anything besides the loopback address. After hours of scouring > google I've found this is a common problem. Most of the solutions have to > deal with the java.policy file. additional specific data points that don't solve your problem: Windows 2000, Weblogic JDK 1.3.1_03: returns non-loopback Linux (kernel 2.6), JDK 1.4.2_01: returns non-loopback FreeBSD -stable from 8 Jan 2004, native JDK 1.3.1-p9: returns loopback FreeBSD -stable from 8 Jan 2004, linux JDK 1.3.1_10: returns loopback chris ------------------------------- Chris Doherty "I think," said Christopher Robin, "that we ought to eat all our provisions now, so we won't have so much to carry." -- A. A. Milne -------------------------------