<script type="application/javascript ">
    const SQF_IP = document.getElementById('SQF_IP');

    fetch('https://api.ipify.org?format=json')
        .then((response) => { return response.json() })
        .then((json) => {
            let ip = json.ip;
            SQF_IP.value = ip;
        })
        .catch((err) => { console.log(`Error getting IP Address: ${err}`) })
</script>