how to get-find ip address of client machine in using jquery

Posted by imomins on October 7, 2012 at 3:15 AM

In this article I will explain how to get or find IP address of client machine in using JQuery.

In previous posts I explained many articles relating to
 JQuery. Now I will explain how to get client machine IP address of client machine in using jquery. To implement this one write the code as shown below

<html xmlns="">
<title>Get Find IP Address of Client machine using JQuery in</title>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
$(function() {
$("#btnSubmit").click(function() {
function(data) {
alert("Your IP Address: " + data.ip);
.error(function() { alert("error"); })
<form id="form1" runat="server">
<asp:button ID="btnSubmit" runat="server" Text="Get IP Address" />
If you observe script in header section here we are calling webservice using JSON calls this service is called as JSONP because we included parameter string “callback=?” in URL.


Your IP Address:

Categories: JQUERY, ASP.NET

Post a Comment


Oops, you forgot something.


The words you entered did not match the given text. Please try again.

You must be a member to comment on this page. Sign In or Register