You'll get the clientIP using both javascript and jquery.
You can, relaying it via server side with JSONP
And while googling to find one, found it here on SO http://stackoverflow.com/questions/102605/can-i-lookup-the-ip-address-of-a-hostname-from-javascript
<script type="application/javascript">
function getip(json){
alert(json.ip); // alerts the ip address
}
</script>
<script type="application/javascript" src="http://jsonip.appspot.com/?callback=getip"></script>
also,jQuery can handle JSONP, just pass an url formatted with the callback=? paramtere to the $.getJSON method, for example:
$.getJSON("http://jsonip.appspot.com?callback=?",
function(data){
alert( "Your ip: " + data.ip);
});
This example is of a really simple JSONP service implemented on Google App Engine, you can see more details here.
Check the source of the service, is a small Python script, it can be implemented on any server-side language.
If you aren't looking for a cross-domain solution the script can be simplified even more, since you don't need the callback parameter, and you return pure JSON.
Run the above snippet here.