Get Client IP Address 

    <script type="text/javascript" src="http://l2.io/ip.js">
        $(document).ready(function () {
            $.getJSON("http://smart-ip.net/geoip-json?callback=?",
            function (json) {
                alert(json.ip); // alerts the ip address       
            });
        });
    </script>

Reference:http://stackoverflow.com/questions/391979/get-client-ip-using-just-javascript

arrow
arrow
    文章標籤
    IP client ip jquery json
    全站熱搜

    以戒為師 發表在 痞客邦 留言(0) 人氣()