I'm utilizing to retrieve the IP address of users. In some cases, it is returning both an internal and external IP as a string separated by commas. I am interested in only obtaining the external IP address. Can I assume a specific order for the returned addresses? Is the external IP always listed last? Or do I need to apply filters based on certain criteria? For instance: excluding addresses like 127.0.0.1, 192.168., 10..?
$.getJSON('http://jsonip.com/?callback=?', function(data){
console.log("Current IP Address: " + data.ip);
});