$.get('https://ipinfo.io', (response) => {
document.getElementById('response_ip').value = response.ip;
document.getElementById('response_city').value = response.city;
document.getElementById('response_region').value = response.region;
document.getElementById('response_country').value = response.country;
document.getElementById('response_location').value = response.loc;
document.getElementById('response_postal').value = response.postal;
document.getElementById('response_timezone').value = response.timezone;
},'jsonp');