How to get ip address

Hi,

I am working on Linux.

I have a problem of getting the IP Address.

Can any one help me in getting the IP Address.

And my IP Address changes day by day.

Using InetAddress class i am able to get the IP Address on Windows, but this is failing on Linux.

Thank You

[307 byte] By [Inspiron123a] at [2007-11-27 7:47:15]
# 1
I have seent he answer for this , i think it was in the networking forums. your IP comes back as 127.0.0.1, right?If so go search the networking forumsHTH:)
monk3ya at 2007-7-12 19:28:19 > top of Java-index,Java Essentials,New To Java...
# 2
here is the thread http://forum.java.sun.com/thread.jspa?threadID=5184414&tstart=0
monk3ya at 2007-7-12 19:28:19 > top of Java-index,Java Essentials,New To Java...