Possible Duplicate:
how to get users ip address in java
Get IP address with URL string? (Java)
link is :
"http://automation.whatismyip.com/n09230945.asp"
the above link return External IP.
I try to make my own code to get my IP like above link
my code is
String my_own_ip =InetAddress.getLocalHost().getHostAddress();
so how to get this IP
in this code return my internal IP
I am in LAN Connection my LAN IP is 192.168.0.109
and external IP is 27.54.180.156
I want 27.54.180.156
Thanks in Advance