How to get ip address in jquery?

By Hardik Savani | June 8, 2016 | | 40065 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) {






***Do you want me hire for your Project Work? Then Contact US.

We are Recommending you: