PageSourceSearch

https://www.concordia.gob.ar/sites/all/modules/carnaval/js/realIP.js?tlrls2

js concordia.gob.ar collected 2026-10-02 10:01:48 UTC 1,067 bytes, 30 lines download raw bytes

1async function getIp() {
2    try {
3        const response = await fetch('https://api.ipify.org/?format=json');
4        const data = await response.json();
5
6        // Assuming the response structure is { ip: 'someIpAddress' }
7        const ipAddress = data.ip;
8
9        return ipAddress;
10    } catch (error) {
11        console.error('Error fetching IP:', error);
12        return null;
13    }
14}
15
16document.addEventListener('DOMContentLoaded', async function() {
17    // Tu código aquí se ejecutará cuando el DOM esté listo
18
19    // Por ejemplo, puedes llamar a tu función getIp() aquí
20    // Supongamos que tienes un elemento con el atributo name="miElemento"
21    var elementos = document.getElementsByName('ipComprador');
22
23    // elements es una NodeList, por lo que puedes acceder al primer elemento (si existe)
24    if (elementos.length > 0) {
25        var primerElemento = elementos[0];
26        // Hacer algo con el elemento encontrado
27        const ip = await getIp();        
28        elementos[0].setAttribute("value", ip);
29    }
30});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.