1
0
mirror of https://github.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE.git synced 2025-08-22 16:22:32 +00:00
Files
AAAAAEXQOSyIpN2JZ0ehUQ 987a6d8223 Update Script
2025-06-03 23:50:51 -04:00

13 lines
342 B
PHP

<?php
// Obtener IP desde dos servicios externos
$ip1 = trim(@file_get_contents("https://ipv4.icanhazip.com/"));
$ip2 = trim(@file_get_contents("http://whatismyip.akamai.com/"));
// Comparar ambas IPs
$ipFinal = ($ip1 !== $ip2) ? $ip2 : $ip1;
// Mostrar la IP sin salto de línea extra
header('Content-Type: text/plain');
echo $ipFinal;
?>