webmasterbeta
New Member
Hello!I have tried to get the IP address and host name of the host running my Javaapplet using the following Java-Code:InetAddress inetadr = InetAddress.getLocalHost();System.out.println("LocalIP: " + inetadr.getHostAddress());System.out.println("LocalName: " + inetadr.getHostName());It works fine in when I run in my IDE but whenBut I always get 127.0.0.1 and localhost on my Windows 2000 Professionalsystem. Is this a bug ?? or is there any other way to determine the nameand IP address of my localhost???Can anyone help me?