I am using Netbeans 6.7.1 on Fedora 11(Linux). The issue is that when I use InetAddress.getLocalHost() method, I get only the loopback interface IP. In Windows 7, I did same and got the IP that I was having. Right now in spite of being connected to the net and havinga live IP, I can't get that IP using the above mentioned method. Am I doing something wrong?