title: How to get ip address using javascript or jQuery?
body: <p>I need to show IP address in page footer in static site is it possible to get IP address using JavaScript or jQuery...</p>
  
  <p>I tried this but it is giving same value in all computers</p>
  
  <pre><code>&lt;script&gt;
  var myip;
  function ip_callback(o) {
      myip = o.host;
  }
  &lt;/script&gt;
  &lt;script src="https://smart-ip.net/geoip-json?callback=ip_callback"&gt;&lt;/script&gt;
  &lt;script&gt;alert(myip);&lt;/script&gt;
  </code></pre>