Need to store Ip address of client in a variable
<p>I want to store clients Ip address to a varialbe and want to send it to server.</p>

<p>for fetching ip address i am using</p>

<pre><code>$.getJSON("http://jsonip.appspot.com?callback=?",
    function(data){
       alert( "Your ip: " + data.ip);
  }); 
</code></pre>

<p>That is working properly.
But storing this value to a variable is not possible  for me.</p>

<p>Can any one suggest any other code to get ip address of client which can store to a javascript variable and can send to server.</p>
