From owner-freebsd-java@FreeBSD.ORG Wed Apr 7 08:57:04 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 1886116A4CE for ; Wed, 7 Apr 2004 08:57:04 -0700 (PDT) Received: from mailserv1.neuroflux.com (mailserv1.neuroflux.com [204.228.228.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9958B43D2F for ; Wed, 7 Apr 2004 08:57:03 -0700 (PDT) (envelope-from ryans@gamersimpact.com) Received: (qmail 99461 invoked by uid 89); 7 Apr 2004 15:56:39 -0000 Received: from unknown (HELO www2.neuroflux.com) (127.0.0.1) by localhost with SMTP; 7 Apr 2004 15:56:39 -0000 Received: from 134.84.153.235 (SquirrelMail authenticated user ryans@gamersimpact.com) by www2.neuroflux.com with HTTP; Wed, 7 Apr 2004 09:56:39 -0600 (MDT) Message-ID: <49533.134.84.153.235.1081353399.squirrel@www2.neuroflux.com> Date: Wed, 7 Apr 2004 09:56:39 -0600 (MDT) From: "Ryan Sommers" To: java@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: getLocalHost() Always Returns Loopback? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2004 15:57:04 -0000 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. First off... Everything says to put the policy file in your home directory; never works. Any ideas? I've gottne past this by running with the arguments "-Djava.security.manager -Djava.security.policy==/usr/home/.../java.policy". My java.policy file contains: grant { permission java.net.SocketPermission "*:1024-65535", "connect,accept,listen,resolve"; permission java.security.AllPermission; }; Any ideas how I can get any of the other IP Addresses returned? I'm attempting to run the PAST java code (search google for PAST AND Storage). Any hints would be greatly appreciated. -- Ryan "leadZERO" Sommers Gamer's Impact President ryans@gamersimpact.com ICQ: 1019590 AIM/MSN: leadZERO -= http://www.gamersimpact.com =-