mirror of
https://github.com/AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE.git
synced 2025-08-22 16:22:32 +00:00
13 lines
342 B
PHP
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;
|
|
?>
|