How to get ip address in jquery?

By Hardik Savani | June 8, 2016 | | 12265 Viewer | Category : Javascript jQuery

you can get ip address in jquery using getJSON(). If you need to get ip address in your js file you can get easily. In this example you can see how to get ip address in jquery. So let's try with this...


<html lang="en">


<title>Jquery - get ip address</title>

<script type="text/javascript" src="//"></script>



<h1>Your Ip Address : <span class="ip"></span></h1>

<script type="text/javascript">

$.getJSON("", function (data) {






Please Subscribe Your Email Address, We Will Notify When Add New Post:

We are Recommending you: