Hello, i am trying to get JacORB1 working on my machines.... unfortunately the nameserver registers itself with the loopback device instead of the ip-interface.... which makes it unusable... the author send me an IP test programm attached with this mail, on all machines i have it reports the same :loopback and not IP... (jdk1.1.7-i386, jdk1.1.7-alpha, jdk1.2-pre1-i386)... could someone tell me whats going wrong here? -- ciao bboett ============================================================== [EMAIL PROTECTED] http://erm6.u-strasbg.fr/~bboett =============================================================== the total amount of intelligence on earth is constant. human population is growing....
import java.io.*; import java.net.*; public class IPTest { public static int port = 0; public static String addr = null; public static void main(String argv[]) { try { java.net.ServerSocket serverSocket = new java.net.ServerSocket( 0 ); port = serverSocket.getLocalPort(); addr = serverSocket.getInetAddress().getLocalHost().toString(); addr = addr.substring(addr.indexOf("/")+1); System.out.println( "port: " + port + " addr: " + addr ); } catch (Exception e) { e.printStackTrace(); } } }