<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Nikhil Sangani</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" language="Javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript" language="Javascript"> $.get("http://ipinfo.io", function (response) { alert(response.ip); }, "jsonp"); </script> </head> <body> </body> </html>
Here you can find solution of your code problem & errors.