This code outputs loop-back address 127.0.0.1 and host name of my PC, what a huge work this code does, but i am interested in eth0 interface address which is �192.168.1.2�. any suggestion how can i get my PC local LAN ip via code. Regards MABASIT
Hey, Abdul, thanks for posting your solution! It's nice for others (like me) who stumble upon the thread and are curious as to the solution, especially when we've got the same question. That's part of the JavaRanch spirit.