How to get IP Add In JAVA like following link
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/804428/how-to-get-users-ip-address-in-java">how to get users ip address in java</a><br>
  <a href="http://stackoverflow.com/questions/9286861/get-ip-address-with-url-string-java">Get IP address with URL string? (Java)</a>  </p>
</blockquote>



<p>link is :</p>

<pre><code>"http://automation.whatismyip.com/n09230945.asp"
</code></pre>

<p>the above link return External IP.</p>

<p>I try to make my own code to get my IP like above link</p>

<p>my code is </p>

<blockquote>
  <p>String my_own_ip =InetAddress.getLocalHost().getHostAddress();</p>
</blockquote>

<p>so how to get this IP</p>

<p>in this code return my internal IP</p>

<p>I am in LAN Connection my LAN IP is 192.168.0.109</p>

<p>and external IP is 27.54.180.156</p>

<pre><code>I want 27.54.180.156
</code></pre>

<p>Thanks in Advance </p>
