Date: Wed, 7 Apr 2004 09:56:39 -0600 (MDT) From: "Ryan Sommers" <ryans@gamersimpact.com> To: java@freebsd.org Subject: getLocalHost() Always Returns Loopback? Message-ID: <49533.134.84.153.235.1081353399.squirrel@www2.neuroflux.com>
next in thread | raw e-mail | index | archive | help
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 =-
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49533.134.84.153.235.1081353399.squirrel>