Hacker News new | comments | show | ask | jobs | submit login
http://jsonip.com - Get a visitor's IP with js
11 points by geuis on Nov 12, 2010 | hide | past | web | favorite | 1 comment
I wrote a node.js app today that lets you get a client's IP address as either a json object, or with with a jsonp callback.

json example, http://jsonip.com {'ip':'<client ip>'}

jsonp example: cb({'ip':'<client ip>'});

    <script type="text/javascript">
        cb = function(obj){
            console.log(obj);
        }
    </script>
    <script type="text/javascript" src="http://jsonip.com/cb"></script>






Applications are open for YC Summer 2018

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: